diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-02-01 06:20:59 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-02-01 06:20:59 +0800 |
commit | 4f610291774fcc3b60f274855fc1cc209a4893c9 (patch) | |
tree | 68b6c8323fd6ce4ca18d18171b2ad3554fb5ccf8 | |
parent | f16535619692dd7f1c24bcc07875d60804d50ee2 (diff) | |
download | tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar.gz tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar.bz2 tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar.lz tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar.xz tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.tar.zst tangerine-wallet-browser-4f610291774fcc3b60f274855fc1cc209a4893c9.zip |
Remove unused file
-rw-r--r-- | ui/app/settings.js | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js deleted file mode 100644 index 454cc95e0..000000000 --- a/ui/app/settings.js +++ /dev/null @@ -1,59 +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') - -module.exports = connect(mapStateToProps)(AppSettingsPage) - -function mapStateToProps (state) { - return {} -} - -inherits(AppSettingsPage, Component) -function AppSettingsPage () { - Component.call(this) -} - -AppSettingsPage.prototype.render = function () { - return ( - - h('.account-detail-section.flex-column.flex-grow', [ - - // subtitle and nav - h('.flex-row.flex-center', [ - h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', { - onClick: this.navigateToAccounts.bind(this), - }), - h('h2.page-subtitle', 'Settings'), - ]), - - h('label', { - htmlFor: 'settings-rpc-endpoint', - }, 'RPC Endpoint:'), - h('input', { - type: 'url', - id: 'settings-rpc-endpoint', - onKeyPress: this.onKeyPress.bind(this), - }), - - ]) - - ) -} - -AppSettingsPage.prototype.componentDidMount = function () { - document.querySelector('input').focus() -} - -AppSettingsPage.prototype.onKeyPress = function (event) { - // get submit event - if (event.key === 'Enter') { - // this.submitPassword(event) - } -} - -AppSettingsPage.prototype.navigateToAccounts = function (event) { - event.stopPropagation() - this.props.dispatch(actions.showAccountsPage()) -} |