diff options
Diffstat (limited to 'ui/app/accounts/new.js')
-rw-r--r-- | ui/app/accounts/new.js | 44 |
1 files changed, 7 insertions, 37 deletions
diff --git a/ui/app/accounts/new.js b/ui/app/accounts/new.js index 0356bb313..07fc1e672 100644 --- a/ui/app/accounts/new.js +++ b/ui/app/accounts/new.js @@ -2,59 +2,29 @@ const inherits = require('util').inherits const Component = require('react').Component const h = require('react-hyperscript') const connect = require('react-redux').connect -const TabBar = require('../components/tab-bar') -module.exports = connect(mapStateToProps)(NewAccountScreen) +module.exports = connect(mapStateToProps)(COMPONENTNAME) function mapStateToProps (state) { return {} } -inherits(NewAccountScreen, Component) -function NewAccountScreen () { +inherits(COMPONENTNAME, Component) +function COMPONENTNAME () { Component.call(this) } -NewAccountScreen.prototype.render = function () { +COMPONENTNAME.prototype.render = function () { const props = this.props - const state = this.state || {} - const subview = state.subview || 'new' return ( - h('.flex-column', { + h('div', { style: { + background: 'red', }, }, [ - - // title and nav - h('.flex-row.space-between', { - style: { - alignItems: 'center', - padding: '0px 20px', - } - }, [ - h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', { - onClick: this.goHome.bind(this), - }), - h('h2.page-subtitle', 'Add Account'), - h('i', { style: { width: '18px' } }), - ]), - - h(TabBar, { - tabs: [ - { content: 'Create New', key: 'new' }, - { content: 'Import', key: 'import' }, - ], - defaultTab: 'new', - tabSelected: (key) => { - console.log('selected ' + key) - } - }), - + `Hello, ${props.sender}`, ]) ) } -NewAccountScreen.prototype.goHome = function() { - this.props.dispatch(actions.showAccountPage()) -} |