diff options
author | Dan <danjm.com@gmail.com> | 2018-01-11 02:25:38 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2018-01-13 05:42:51 +0800 |
commit | 980e1bfcf82361185f6d1b22abd9593ba166825e (patch) | |
tree | 8bdb94affcc0c332f9ff681e53fa2a4fff695f1f /ui/app/selectors.js | |
parent | 89a8267fe70b62739043c09e855d6aa97af8769e (diff) | |
download | tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.gz tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.zst tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.zip |
New add account page with create and import options.
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r-- | ui/app/selectors.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js index 22ef439c4..38a96c48b 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -26,6 +26,7 @@ const selectors = { getSelectedTokenContract, autoAddToBetaUI, getSendMaxModeState, + getCurrentViewContext, } module.exports = selectors @@ -180,4 +181,9 @@ function autoAddToBetaUI (state) { const userIsNotInBeta = !state.metamask.featureFlags.betaUI return userIsNotInBeta && userPassesThreshold +} + +function getCurrentViewContext (state) { + const { currentView = {} } = state.appState + return currentView.context }
\ No newline at end of file |