Skip to content

Commit

Permalink
feat: cctp withdrawals: cp old code [2/n]
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Oct 16, 2024
1 parent 6d192ff commit 3e4da4b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/views/forms/AccountManagementFormsNew/HighestFeesText.tsx
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 src/views/forms/AccountManagementFormsNew/LowestFeesText.tsx
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>
);
};

0 comments on commit 3e4da4b

Please sign in to comment.