-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refresh withdrawals ui to add clarity around fees (OTE-276) (#461)
* [chore] refresh withdrawals ui to add clarity around fees * add cctp file i forgot * add space after comma * cleanup * use styled row with gap. rename ExchangeRate style to more descriptive generic RowWithGap * address comments. add localization, use proper token by address detection * cleanup * replace more l8n stuff * bump l10n package. localize lowest fees highlighted text * removing unused code * remove collapsible details and migrate styling * exclude non mainnet chain * address comment * merge conflicts
- Loading branch information
1 parent
e7c4cd4
commit ad56a5b
Showing
8 changed files
with
10,386 additions
and
3,418 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,11 @@ | ||
import cctpTokens from '../../public/configs/cctp.json'; | ||
|
||
const CCTP_MAINNET_CHAINS = cctpTokens.filter((token) => !token.isTestnet); | ||
const CCTP_MAINNET_CHAINS_NAMES_LOWER_CASE = CCTP_MAINNET_CHAINS.map((token) => | ||
token.name.toLowerCase() | ||
); | ||
|
||
// TODO: make a general capitalize util fn | ||
export const CCTP_MAINNET_CHAIN_NAMES_CAPITALIZED = CCTP_MAINNET_CHAINS_NAMES_LOWER_CASE.map( | ||
(tokenName) => tokenName[0].toUpperCase() + tokenName.slice(1) | ||
); |
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
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
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
Oops, something went wrong.