diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-05-20 14:04:19 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-05-20 14:04:19 +0800 |
commit | 4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9 (patch) | |
tree | ecc9cfa83e3570fc71389ee1fdfbcd030f416ddb /ui/app/reducers | |
parent | 713c77db54e7866da169205d7f665c33a4c626e0 (diff) | |
download | tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar.gz tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar.bz2 tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar.lz tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar.xz tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.tar.zst tangerine-wallet-browser-4f6b53c1aa383c05fa3c356adb332fcc6dbf45e9.zip |
Update designs for Add Token screen
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index bb35cf990..69fe89735 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -28,6 +28,7 @@ function reduceMetamask (state, action) { contractExchangeRates: {}, tokenExchangeRates: {}, tokens: [], + pendingTokens: {}, send: { gasLimit: null, gasPrice: null, @@ -356,6 +357,17 @@ function reduceMetamask (state, action) { currentLocale: action.value, }) + case actions.SET_PENDING_TOKENS: + return extend(metamaskState, { + pendingTokens: { ...action.payload }, + }) + + case actions.CLEAR_PENDING_TOKENS: { + return extend(metamaskState, { + pendingTokens: {}, + }) + } + default: return metamaskState |