diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-06-22 05:24:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 05:24:28 +0800 |
commit | 537328b5298a42f9d20862d42b9012babcda373c (patch) | |
tree | 9a5728447f5b23a918b4a23c12e91ea1b702e527 /ui/app/settings.js | |
parent | bb7788373d9c234313d651d88c72c18a8e4ca0aa (diff) | |
parent | d7c3e8e9f5182576eb4a990d385ff8ce4ebd417c (diff) | |
download | tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.gz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.bz2 tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.lz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.xz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.zst tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.zip |
Merge pull request #303 from MetaMask/AutoLint
Auto lint
Diffstat (limited to 'ui/app/settings.js')
-rw-r--r-- | ui/app/settings.js | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js index 9a11ef680..e56f4ee63 100644 --- a/ui/app/settings.js +++ b/ui/app/settings.js @@ -2,28 +2,20 @@ const inherits = require('util').inherits const Component = require('react').Component const h = require('react-hyperscript') const connect = require('react-redux').connect -const copyToClipboard = require('copy-to-clipboard') const actions = require('./actions') -const AccountPanel = require('./components/account-panel') module.exports = connect(mapStateToProps)(AppSettingsPage) -function mapStateToProps(state) { - return { - identities: state.metamask.identities, - address: state.appState.currentView.context, - } +function mapStateToProps (state) { + return {} } inherits(AppSettingsPage, Component) -function AppSettingsPage() { +function AppSettingsPage () { Component.call(this) } - -AppSettingsPage.prototype.render = function() { - var state = this.props - var identity = state.identities[state.address] +AppSettingsPage.prototype.render = function () { return ( h('.account-detail-section.flex-column.flex-grow', [ @@ -47,23 +39,22 @@ AppSettingsPage.prototype.render = function() { }), ]) - + ) } -AppSettingsPage.prototype.componentDidMount = function(){ +AppSettingsPage.prototype.componentDidMount = function () { document.querySelector('input').focus() } -AppSettingsPage.prototype.onKeyPress = function(event) { +AppSettingsPage.prototype.onKeyPress = function (event) { // get submit event if (event.key === 'Enter') { // this.submitPassword(event) } } - -AppSettingsPage.prototype.navigateToAccounts = function(event){ +AppSettingsPage.prototype.navigateToAccounts = function (event) { event.stopPropagation() this.props.dispatch(actions.showAccountsPage()) } |