diff options
author | Dan <danjm.com@gmail.com> | 2017-10-05 23:44:45 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-09 08:48:09 +0800 |
commit | bbe893a0d8d759ba750ba78ff8aed0f0876a43ff (patch) | |
tree | 4547defa401e36c5ca225d95d6939ce7c7d0f7c5 /ui/app/app.js | |
parent | 49aa6e73eadc5b343353c4312afc1e3b40dc18df (diff) | |
download | tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar.gz tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar.bz2 tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar.lz tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar.xz tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.tar.zst tangerine-wallet-browser-bbe893a0d8d759ba750ba78ff8aed0f0876a43ff.zip |
UI for send screen container without form rows.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index f1a671ab1..ac017da05 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -9,6 +9,7 @@ const NewKeyChainScreen = require('./new-keychain') // accounts const MainContainer = require('./main-container') const SendTransactionScreen = require('./send') +const SendTransactionScreen2 = require('./send-v2.js') const SendTokenScreen = require('./components/send-token') const ConfirmTxScreen = require('./conf-tx') // notice @@ -333,7 +334,15 @@ App.prototype.renderPrimary = function () { case 'sendTransaction': log.debug('rendering send tx screen') - return h(SendTransactionScreen, {key: 'send-transaction'}) + // Below param and ternary operator used for feature toggle + // Remove before merged to master + const windowParam = window.location.search.substr(1).split('=') + + const SendComponentToRender = windowParam[0] === "ft" && windowParam[1] === "send-v2" + ? SendTransactionScreen2 + : SendTransactionScreen + + return h(SendComponentToRender, {key: 'send-transaction'}) case 'sendToken': log.debug('rendering send token screen') |