-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cctp withdrawals: cp old code [2/n]
- Loading branch information
1 parent
6d192ff
commit 3e4da4b
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/views/forms/AccountManagementFormsNew/HighestFeesText.tsx
This file contains 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,21 @@ | ||
import { STRING_KEYS } from '@/constants/localization'; | ||
|
||
import { useStringGetter } from '@/hooks/useStringGetter'; | ||
|
||
export const HighestFeesDecoratorText = () => { | ||
const stringGetter = useStringGetter(); | ||
return ( | ||
<div tw="text-color-text-0 font-small-regular"> | ||
{stringGetter({ | ||
key: STRING_KEYS.HIGH_FEES_IN_GENERAL, | ||
params: { | ||
HIGH_FEES_IN_GENERAL_HIGHLIGHT_TEXT: ( | ||
<span tw="text-red"> | ||
{stringGetter({ key: STRING_KEYS.HIGH_FEES_IN_GENERAL_HIGHLIGHT_TEXT })} | ||
</span> | ||
), | ||
}, | ||
})} | ||
</div> | ||
); | ||
}; |
21 changes: 21 additions & 0 deletions
21
src/views/forms/AccountManagementFormsNew/LowestFeesText.tsx
This file contains 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,21 @@ | ||
import { STRING_KEYS } from '@/constants/localization'; | ||
|
||
import { useStringGetter } from '@/hooks/useStringGetter'; | ||
|
||
export const LowestFeesDecoratorText = () => { | ||
const stringGetter = useStringGetter(); | ||
return ( | ||
<div tw="text-color-text-0 font-small-regular"> | ||
{stringGetter({ | ||
key: STRING_KEYS.LOWEST_FEES_WITH_USDC, | ||
params: { | ||
LOWEST_FEES_HIGHLIGHT_TEXT: ( | ||
<span tw="text-green"> | ||
{stringGetter({ key: STRING_KEYS.LOWEST_FEES_HIGHLIGHT_TEXT })} | ||
</span> | ||
), | ||
}, | ||
})} | ||
</div> | ||
); | ||
}; |