// @flow import React from 'react'; import { Form, FormRow, FormField } from 'component/common/form'; import { Modal } from 'modal/modal'; import Button from 'component/button'; type Props = { quit: () => void, closeModal: () => void, unlockWallet: (?string) => void, walletUnlockSucceded: boolean, }; class ModalWalletUnlock extends React.PureComponent { state = { password: null, }; componentDidUpdate() { const { props } = this; if (props.walletUnlockSucceded === true) { props.closeModal(); } } onChangePassword(event) { this.setState({ password: event.target.value }); } render() { const { quit, unlockWallet, walletUnlockSucceded } = this.props; const { password } = this.state; return ( unlockWallet(password)} onAborted={quit} >
unlockWallet(password)}>

{__( 'Your wallet has been encrypted with a local password. Please enter your wallet password to proceed.' )}{' '}

); } } export default ModalWalletUnlock;