aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-04-19 00:21:24 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-04-19 05:22:17 +0800
commitce03b7db51570295c7868382cf997dbb1bc5725a (patch)
treeef0a79a8aff59253de4fa6f6406cf3695f38ca41 /ui/app/reducers
parent83811910c84342094be4ac94dca829e8f5ff630f (diff)
downloadtangerine-wallet-browser-ce03b7db51570295c7868382cf997dbb1bc5725a.tar.gz
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.js14
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,