aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-10-16 01:48:12 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-10-16 01:48:12 +0800
commit1481a3ef8e3352eb74fa11c4f578d15d84c76de7 (patch)
tree46b87a06085fee9438eb3cfefd104e92395c2f2f /ui
parent7cba71fc5590af115997f8120ac59f1293d6e2b9 (diff)
downloadtangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar.gz
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar.bz2
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar.lz
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar.xz
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.tar.zst
tangerine-wallet-browser-1481a3ef8e3352eb74fa11c4f578d15d84c76de7.zip
Initial work on UI side
Diffstat (limited to 'ui')
-rw-r--r--ui/app/actions.js10
-rw-r--r--ui/app/app.js4
-rw-r--r--ui/app/new-keychain.js33
-rw-r--r--ui/app/reducers/app.js10
4 files changed, 56 insertions, 1 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 4f3083707..bcae784d3 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -132,6 +132,10 @@ var actions = {
RECOVERY_IN_PROGRESS: 'RECOVERY_IN_PROGRESS',
BACK_TO_UNLOCK_VIEW: 'BACK_TO_UNLOCK_VIEW',
backToUnlockView: backToUnlockView,
+ // SHOWING KEYCHAIN
+ SHOW_NEW_KEYCHAIN: 'SHOW_NEW_KEYCHAIN',
+ showNewKeychain: showNewKeychain,
+
}
module.exports = actions
@@ -326,6 +330,12 @@ function backToUnlockView () {
}
}
+function showNewKeychain () {
+ return {
+ type: actions.SHOW_NEW_KEYCHAIN
+ }
+}
+
//
// unlock screen
//
diff --git a/ui/app/app.js b/ui/app/app.js
index 3266ced51..7392e275d 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -8,6 +8,7 @@ const ReactCSSTransitionGroup = require('react-addons-css-transition-group')
const DisclaimerScreen = require('./first-time/disclaimer')
const InitializeMenuScreen = require('./first-time/init-menu')
const CreateVaultScreen = require('./first-time/create-vault')
+const NewKeychainScreen = require('./new-keychain')
// unlock
const UnlockScreen = require('./unlock')
// accounts
@@ -432,6 +433,9 @@ App.prototype.renderPrimary = function () {
case 'sendTransaction':
return h(SendTransactionScreen, {key: 'send-transaction'})
+ case 'newKeychain':
+ return h(NewKeyChainScreen, {key: 'new-keychain'})
+
case 'confTx':
return h(ConfirmTxScreen, {key: 'confirm-tx'})
diff --git a/ui/app/new-keychain.js b/ui/app/new-keychain.js
new file mode 100644
index 000000000..d6fefd0c7
--- /dev/null
+++ b/ui/app/new-keychain.js
@@ -0,0 +1,33 @@
+const inherits = require('util').inherits
+const Component = require('react').Component
+const h = require('react-hyperscript')
+const connect = require('react-redux').connect
+
+module.exports = connect(mapStateToProps)(NewKeychain)
+
+function mapStateToProps (state) {
+ return {}
+}
+
+inherits(NewKeychain, Component)
+function NewKeychain () {
+ Component.call(this)
+}
+
+NewKeychain.prototype.render = function () {
+ const props = this.props
+
+ return (
+ h('div', {
+ style: {
+ background: 'blue',
+ },
+ }, [
+ h('h1',`Here's a list!!!!`),
+ h('button',
+ {
+ onClick: () => this.props.dispatch(actions.goHome())
+ })
+ ])
+ )
+}
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index c2ac099a6..2bfb2567a 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -119,6 +119,15 @@ function reduceApp (state, action) {
warning: null,
})
+ case actions.SHOW_NEW_KEYCHAIN:
+ return extend(appState, {
+ currentView: {
+ name: 'newKeychain',
+ context: appState.currentView.context
+ },
+ transForward: true,
+ })
+
// unlock
case actions.UNLOCK_METAMASK:
@@ -540,4 +549,3 @@ function indexForPending (state, txId) {
})
return idx
}
-