@ -91,18 +91,14 @@ class WalletType extends PureComponent<Props> {
keyboardHandler ( event : KeyboardEvent ) : void {
if ( event . keyCode === 13 ) {
event . preventDefault ( ) ;
this . changeType ( false ) ;
this . props. onWalletTypeRequest ( false ) ;
}
}
keyboardHandler : ( event : KeyboardEvent ) => void ;
changeType ( hidden : boolean , state : ? string ) {
this . props . onWalletTypeRequest ( this . props . device , hidden , state ) ;
}
render ( ) {
const { device , onCancel } = this . props ;
const { device , onCancel , onWalletTypeRequest } = this . props ;
return (
< Wrapper >
@ -122,7 +118,7 @@ class WalletType extends PureComponent<Props> {
Standard Wallet
< / H e a d e r >
< P isSmaller > Continue to access your standard wallet . < / P >
< StyledButton onClick = { ( ) => this . changeType ( false , device . stat e) } > Go to your standard wallet < / S t y l e d B u t t o n >
< StyledButton onClick = { ( ) => onWalletTypeRequest ( fals e) } > Go to your standard wallet < / S t y l e d B u t t o n >
< / C o n t e n t >
< Content >
< Tooltip
@ -146,7 +142,7 @@ class WalletType extends PureComponent<Props> {
Hidden Wallet
< / H e a d e r >
< P isSmaller > You will be asked to enter your passphrase to unlock your hidden wallet . < / P >
< StyledButton isWhite onClick = { ( ) => this . changeType ( true , device . stat e) } > Go to your hidden wallet < / S t y l e d B u t t o n >
< StyledButton isWhite onClick = { ( ) => onWalletTypeRequest ( tru e) } > Go to your hidden wallet < / S t y l e d B u t t o n >
< / C o n t e n t >
< / W r a p p e r >
) ;