1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui
Ariella Vu fadad601b8
ConfirmImportToken: Convert to Functional Component; Add storybook controls (#13594)
* ConfirmImportToken: convert to FC

* ConfirmImportToken: reorganize

* ConfirmImportToken: rm component from path

* replace mapStateToProps w/ useSelector
ConfirmImportToken

* replace mapDispatchToProps w/ useDispatch
ConfirmImportToken

* ConfirmAddSuggestedToken: useHistory

* ConfirmImportToken: add storybook controls

* ConfirmImportToken: rm 1st entry overwrite

* ConfirmImportToken: add tests

* ConfirmImportToken: use real Redux store in tests

* ConfirmImportToken: do not use mock-state.json
https://github.com/MetaMask/metamask-extension/pull/13594#discussion_r805022647

* ConfirmImportToken: tokenAddedEvent -> trackTokenAddedEvent

* Update ui/pages/confirm-import-token/confirm-import-token.js

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* ConfirmImportToken: update useSelector logic

* ConfirmImportToken: replace typeof check w/ === undefined

* ConfirmImportToken: rm unnecessary /rendering from path

* ConfirmImportToken: fix add token redirect

* ConfirmImportToken: use useNewMetricEvent

* ConfirmImportToken: rename vars using "addedToken"

* ConfirmImportToken: setAddedToken to obj copy

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2022-02-16 18:03:54 +00:00
..
__mocks__ Increase Jest unit test coverage for the Swaps feature to ~60% (#11343) 2021-07-02 08:48:34 -05:00
components Ensure pre-selected account on connect screen is visible in list (#13621) 2022-02-16 11:00:44 -07:00
contexts Adding metrics events for EIP-1559 V2 flow (#13329) 2022-02-01 23:23:03 +05:30
css Use ActionableMessage for ConfirmAddSuggestionToken warnings (#13402) 2022-02-01 15:30:15 +00:00
ducks ConfirmImportToken: Convert to Functional Component; Add storybook controls (#13594) 2022-02-16 18:03:54 +00:00
helpers Created "Token details" page (#13216) 2022-02-16 13:29:39 -03:30
hooks Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
pages ConfirmImportToken: Convert to Functional Component; Add storybook controls (#13594) 2022-02-16 18:03:54 +00:00
selectors Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
store Add Snaps via Flask (#13462) 2022-02-14 16:02:51 -08:00
index.js Include transactions from all networks in state logs (#13599) 2022-02-14 13:29:24 -05:00