1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui/hooks
Daniel c3b79bb358
Show custom tokens in Swaps, add a custom token in Swaps (#11200)
* Show custom tokens in Swaps

* Add messages for adding a custom token in Swaps

* Add the first version of importing custom tokens in swaps

* Fix lint rules

* Create a new component: ImportToken

* Remove a pointer cursor from regular heading

* Fix a CSS issue for tokens with long names

* Update a comment

* Don’t return a custom token if it doesn’t have symbol or decimals

* Only search by contract address if nothing was found

* Track “Token Imported” event

* Fix unit tests

* Import tracking for “Token Imported”, increase token icon font size

* Disable token import for Source Token

* Update logic and content for notifications, update tests

* Do not hide a dropdown placeholder on click, so a user can click on a link

* Update a key name

* Update styling for the “danger” type notification in Swaps

* Show either a warning or danger notification based on token verification occurences

* Remove testnets from SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP

* Use the “shouldSearchForImports” prop

* Create a new function for handling token import: “onOpenImportTokenModalClick”

* Filter token duplicities before iterating over tokens

* Use “address” instead of “symbol” for checking uniqueness

* Trigger Build

* Use a new API (/token) to get token data for importing in Swaps

* Temporarily decrese Jest threshold for functions
2021-06-03 13:38:37 -02:30
..
useCancelTransaction.js Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-05-18 12:36:05 -04:00
useCancelTransaction.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useCopyToClipboard.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useCurrencyDisplay.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useCurrencyDisplay.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useCurrentAsset.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useEqualityCheck.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useEthFiatAmount.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useI18nContext.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useMethodData.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useMetricEvent.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useOriginMetadata.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
usePrevious.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useRetryTransaction.js Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-05-18 12:36:05 -04:00
useRetryTransaction.test.js Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-05-18 12:36:05 -04:00
useShouldShowSpeedUp.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useSwappedTokenValue.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTimeout.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenData.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenData.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenDisplayValue.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenDisplayValue.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenFiatAmount.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokensToSearch.js Show custom tokens in Swaps, add a custom token in Swaps (#11200) 2021-06-03 13:38:37 -02:30
useTokenTracker.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTransactionDisplayData.js Capture exception instead of throw error in useTransactionDisplayData (#11153) 2021-05-21 09:31:45 -02:30
useTransactionDisplayData.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useUserPreferencedCurrency.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useUserPreferencedCurrency.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00