diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-04-19 00:21:24 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-04-19 05:22:17 +0800 |
commit | ce03b7db51570295c7868382cf997dbb1bc5725a (patch) | |
tree | ef0a79a8aff59253de4fa6f6406cf3695f38ca41 /ui/app/reducers | |
parent | 83811910c84342094be4ac94dca829e8f5ff630f (diff) | |
download | tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.gz tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.bz2 tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.lz tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.xz tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.zst tangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.zip |
Initial redo attempt of the buy view to look like vladt's desighn
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 7ad1229e5..6b040e988 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -469,8 +469,10 @@ function reduceApp (state, action) { name: 'buyEth', context: appState.currentView.name, }, + identity: state.metamask.identities[action.value], + buyAddress: action.value, buyView: { - subview: 'buyForm', + subview: 'Coinbase', amount: '15.00', buyAddress: action.value, formView: { @@ -483,7 +485,7 @@ function reduceApp (state, action) { case actions.UPDATE_BUY_ADDRESS: return extend(appState, { buyView: { - subview: 'buyForm', + subview: appState.subview, formView: { coinbase: appState.buyView.formView.coinbase, shapeshift: appState.buyView.formView.shapeshift, @@ -496,7 +498,7 @@ function reduceApp (state, action) { case actions.UPDATE_COINBASE_AMOUNT: return extend(appState, { buyView: { - subview: 'buyForm', + subview: 'Coinbase', formView: { coinbase: true, shapeshift: false, @@ -509,7 +511,7 @@ function reduceApp (state, action) { case actions.COINBASE_SUBVIEW: return extend(appState, { buyView: { - subview: 'buyForm', + subview: 'Coinbase', formView: { coinbase: true, shapeshift: false, @@ -522,7 +524,7 @@ function reduceApp (state, action) { case actions.SHAPESHIFT_SUBVIEW: return extend(appState, { buyView: { - subview: 'buyForm', + subview: 'ShapeShift', formView: { coinbase: false, shapeshift: true, @@ -537,7 +539,7 @@ function reduceApp (state, action) { case actions.PAIR_UPDATE: return extend(appState, { buyView: { - subview: 'buyForm', + subview: 'ShapeShift', formView: { coinbase: false, shapeshift: true, |