-
Notifications
You must be signed in to change notification settings - Fork 3
feat: ledger live usde banner #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@stakekit/widget": patch | ||
| --- | ||
|
|
||
| feat: ledger live usde banner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| export const Balance = () => ( | ||
| <svg | ||
| width="14" | ||
| height="15" | ||
| viewBox="0 0 14 15" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| > | ||
| <path | ||
| d="M2.88918 4.62981L1.94493 5.57314L1 4.62981M1.94496 5.51975V4.09577C1.94496 2.79311 3.002 1.73712 4.30594 1.73712M11.1108 10.8432L12.0551 9.89989L13 10.8432M12.055 9.95329V11.3773C12.055 12.6799 10.998 13.7359 9.69403 13.7359M12.77 4.37589C12.77 2.91857 11.5875 1.73725 10.1287 1.73724C8.66996 1.73724 7.4868 2.91856 7.4868 4.37588C7.4868 5.8332 8.66996 7.01452 10.1287 7.01452C11.5875 7.01452 12.77 5.83321 12.77 4.37589ZM1.23065 11.0985C1.23065 12.5558 2.41314 13.7371 3.87191 13.7371C5.33067 13.7371 6.51384 12.5558 6.51384 11.0985C6.51384 9.64116 5.33068 8.45984 3.87191 8.45984C2.41315 8.45984 1.23066 9.64116 1.23065 11.0985Z" | ||
| stroke="white" | ||
| stroke-width="1.5" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| /> | ||
| </svg> | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| import type { TokenDto } from "@stakekit/api-hooks"; | ||
| import { EvmNetworks, type TokenDto } from "@stakekit/api-hooks"; | ||
|
|
||
| export type TokenString = `${TokenDto["network"]}-${TokenDto["address"]}`; | ||
|
|
||
| export const isUSDeToken = (token: TokenDto) => | ||
| token.network === EvmNetworks.ethereum && | ||
| token.address === "0x4c9edd5852cd905f086c759e8383e09bff1e68b3"; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/widget/src/pages/details/earn-page/components/select-token-section/styles.css.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,25 @@ | ||
| import { atoms } from "@sk-widget/styles/theme"; | ||
| import { style } from "@vanilla-extract/css"; | ||
|
|
||
| export const priceTxt = style({ | ||
| flexGrow: 999, | ||
| }); | ||
|
|
||
| export const bottomBannerBottomRadius = style({ | ||
| borderBottomLeftRadius: 0, | ||
| borderBottomRightRadius: 0, | ||
| }); | ||
|
|
||
| export const bottomBanner = style([ | ||
| atoms({ borderRadius: "xl" }), | ||
| { | ||
| borderTopLeftRadius: 0, | ||
| borderTopRightRadius: 0, | ||
| background: | ||
| "linear-gradient(90deg, #4B2921 0%, #723426 25.78%, #994238 59.59%, #7C3C48 100%)", | ||
| }, | ||
| ]); | ||
|
|
||
| export const bottomBannerText = style({ | ||
| fontSize: "12px", | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.