diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-06-22 04:18:32 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-06-22 04:18:32 +0800 |
commit | a08c3bc01b11fbd0e3a243359befbe9fc909edf4 (patch) | |
tree | b79b7324139945c429ca4b6c74715d8040fdf4e1 /ui/app/first-time/create-vault.js | |
parent | f7f8f8b1c50be39db22a7b10c6c6db007fe590aa (diff) | |
download | tangerine-wallet-browser-a08c3bc01b11fbd0e3a243359befbe9fc909edf4.tar.gz tangerine-wallet-browser-a08c3bc01b11fbd0e3a243359befbe9fc909edf4.tar.zst tangerine-wallet-browser-a08c3bc01b11fbd0e3a243359befbe9fc909edf4.zip |
Auto linted
Diffstat (limited to 'ui/app/first-time/create-vault.js')
-rw-r--r-- | ui/app/first-time/create-vault.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/ui/app/first-time/create-vault.js b/ui/app/first-time/create-vault.js index 1e963aa5a..3dfbf0dbd 100644 --- a/ui/app/first-time/create-vault.js +++ b/ui/app/first-time/create-vault.js @@ -7,19 +7,18 @@ const actions = require('../actions') module.exports = connect(mapStateToProps)(CreateVaultScreen) - inherits(CreateVaultScreen, Component) -function CreateVaultScreen() { +function CreateVaultScreen () { Component.call(this) } -function mapStateToProps(state) { +function mapStateToProps (state) { return { warning: state.appState.warning, } } -CreateVaultScreen.prototype.render = function() { +CreateVaultScreen.prototype.render = function () { var state = this.props return ( @@ -91,24 +90,24 @@ CreateVaultScreen.prototype.render = function() { ) } -CreateVaultScreen.prototype.componentDidMount = function(){ +CreateVaultScreen.prototype.componentDidMount = function () { document.getElementById('password-box').focus() } -CreateVaultScreen.prototype.showInitializeMenu = function() { +CreateVaultScreen.prototype.showInitializeMenu = function () { this.props.dispatch(actions.showInitializeMenu()) } // create vault -CreateVaultScreen.prototype.createVaultOnEnter = function(event) { +CreateVaultScreen.prototype.createVaultOnEnter = function (event) { if (event.key === 'Enter') { event.preventDefault() this.createNewVault() } } -CreateVaultScreen.prototype.createNewVault = function(){ +CreateVaultScreen.prototype.createNewVault = function () { var passwordBox = document.getElementById('password-box') var password = passwordBox.value var passwordConfirmBox = document.getElementById('password-box-confirm') @@ -126,5 +125,5 @@ CreateVaultScreen.prototype.createNewVault = function(){ return } - this.props.dispatch(actions.createNewVault(password, ''/*entropy*/)) + this.props.dispatch(actions.createNewVault(password, ''/* entropy*/)) } |