aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-01-18 08:31:12 +0800
committerDan Finlay <dan@danfinlay.com>2017-01-18 08:31:12 +0800
commit9ed6381c5ddee646b9473dbebc55893cebdeb21f (patch)
tree3236e7cc0a5a85e79cd54dc16e9b79e79318ffb0 /ui/app
parent1ff4894b674bbcbac1998228454129018e4642b6 (diff)
downloadtangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar.gz
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar.bz2
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar.lz
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar.xz
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.tar.zst
tangerine-wallet-browser-9ed6381c5ddee646b9473dbebc55893cebdeb21f.zip
Remove unused UI files
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/accounts/add.js79
-rw-r--r--ui/app/accounts/new.js30
2 files changed, 0 insertions, 109 deletions
diff --git a/ui/app/accounts/add.js b/ui/app/accounts/add.js
deleted file mode 100644
index 898f89be2..000000000
--- a/ui/app/accounts/add.js
+++ /dev/null
@@ -1,79 +0,0 @@
-const inherits = require('util').inherits
-const Component = require('react').Component
-const h = require('react-hyperscript')
-const connect = require('react-redux').connect
-const actions = require('../actions')
-
-// Components
-const TabBar = require('../components/tab-bar')
-
-// Subviews
-const NewAccountView = require('./new')
-const ImportAccountView = require('./import')
-
-module.exports = connect(mapStateToProps)(AddAccountScreen)
-
-function mapStateToProps (state) {
- return {}
-}
-
-inherits(AddAccountScreen, Component)
-function AddAccountScreen () {
- Component.call(this)
-}
-
-AddAccountScreen.prototype.render = function () {
-
- return (
- h('.flex-column', {
- style: {
- },
- }, [
-
- // 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) => {
- this.setState({ subview: key })
- },
- }),
-
- this.renderNewOrImport(),
-
- ])
- )
-}
-
-AddAccountScreen.prototype.goHome = function() {
- this.props.dispatch(actions.showAccountsPage())
-}
-
-AddAccountScreen.prototype.renderNewOrImport = function() {
- const state = this.state || {}
- const subview = state.subview || 'new'
-
- switch (subview) {
- case 'new':
- return h(NewAccountView)
-
- case 'import':
- return h(ImportAccountView)
- }
-}
diff --git a/ui/app/accounts/new.js b/ui/app/accounts/new.js
deleted file mode 100644
index 07fc1e672..000000000
--- a/ui/app/accounts/new.js
+++ /dev/null
@@ -1,30 +0,0 @@
-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)(COMPONENTNAME)
-
-function mapStateToProps (state) {
- return {}
-}
-
-inherits(COMPONENTNAME, Component)
-function COMPONENTNAME () {
- Component.call(this)
-}
-
-COMPONENTNAME.prototype.render = function () {
- const props = this.props
-
- return (
- h('div', {
- style: {
- background: 'red',
- },
- }, [
- `Hello, ${props.sender}`,
- ])
- )
-}
-