1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Typo fix.

This commit is contained in:
Kevin Serrano 2016-11-11 10:54:15 -08:00
parent 23263bec7d
commit 3828edf6a4
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4

View File

@ -5,10 +5,10 @@ const connect = require('react-redux').connect
const h = require('react-hyperscript') const h = require('react-hyperscript')
const actions = require('../../../actions') const actions = require('../../../actions')
module.exports = connect(mapStateToProps)(RevealSeedConfirmatoin) module.exports = connect(mapStateToProps)(RevealSeedConfirmation)
inherits(RevealSeedConfirmatoin, Component) inherits(RevealSeedConfirmation, Component)
function RevealSeedConfirmatoin () { function RevealSeedConfirmation () {
Component.call(this) Component.call(this)
} }
@ -18,9 +18,9 @@ function mapStateToProps (state) {
} }
} }
RevealSeedConfirmatoin.prototype.confirmationPhrase = 'I understand' RevealSeedConfirmation.prototype.confirmationPhrase = 'I understand'
RevealSeedConfirmatoin.prototype.render = function () { RevealSeedConfirmation.prototype.render = function () {
const props = this.props const props = this.props
const state = this.state const state = this.state
@ -116,24 +116,24 @@ RevealSeedConfirmatoin.prototype.render = function () {
) )
} }
RevealSeedConfirmatoin.prototype.componentDidMount = function () { RevealSeedConfirmation.prototype.componentDidMount = function () {
document.getElementById('password-box').focus() document.getElementById('password-box').focus()
} }
RevealSeedConfirmatoin.prototype.goHome = function () { RevealSeedConfirmation.prototype.goHome = function () {
this.props.dispatch(actions.showConfigPage(false)) this.props.dispatch(actions.showConfigPage(false))
} }
// create vault // create vault
RevealSeedConfirmatoin.prototype.checkConfirmation = function (event) { RevealSeedConfirmation.prototype.checkConfirmation = function (event) {
if (event.key === 'Enter') { if (event.key === 'Enter') {
event.preventDefault() event.preventDefault()
this.revealSeedWords() this.revealSeedWords()
} }
} }
RevealSeedConfirmatoin.prototype.revealSeedWords = function () { RevealSeedConfirmation.prototype.revealSeedWords = function () {
this.setState({ confirmationWrong: false }) this.setState({ confirmationWrong: false })
const confirmBox = document.getElementById('confirm-box') const confirmBox = document.getElementById('confirm-box')