Enable modal enter #2648
1 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Form, FormField } from 'component/common/form';
|
import { Form, FormField, Submit } from 'component/common/form';
|
||||||
import { Modal } from 'modal/modal';
|
import { Modal } from 'modal/modal';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
|
|
||||||
|
@ -94,9 +94,7 @@ class ModalWalletEncrypt extends React.PureComponent<Props, State> {
|
||||||
isOpen
|
isOpen
|
||||||
title={__('Encrypt Wallet')}
|
title={__('Encrypt Wallet')}
|
||||||
contentLabel={__('Encrypt Wallet')}
|
contentLabel={__('Encrypt Wallet')}
|
||||||
type="confirm"
|
type="custom"
|
||||||
confirmButtonLabel={__('Encrypt Wallet')}
|
|
||||||
abortButtonLabel={__('Cancel')}
|
|
||||||
onConfirmed={() => this.submitEncryptForm()}
|
onConfirmed={() => this.submitEncryptForm()}
|
||||||
onAborted={closeModal}
|
onAborted={closeModal}
|
||||||
>
|
>
|
||||||
|
@ -135,6 +133,7 @@ class ModalWalletEncrypt extends React.PureComponent<Props, State> {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<FormField
|
<FormField
|
||||||
|
inputButton={<Submit label={failMessage ? __('Encrypting Wallet') : __('Encrypt Wallet')} />}
|
||||||
error={understandError === true ? 'You must enter "I understand"' : false}
|
error={understandError === true ? 'You must enter "I understand"' : false}
|
||||||
label={__('Enter "I understand"')}
|
label={__('Enter "I understand"')}
|
||||||
placeholder={__('Dear computer, I understand')}
|
placeholder={__('Dear computer, I understand')}
|
||||||
|
@ -144,6 +143,9 @@ class ModalWalletEncrypt extends React.PureComponent<Props, State> {
|
||||||
/>
|
/>
|
||||||
{failMessage && <div className="error-text">{__(failMessage)}</div>}
|
{failMessage && <div className="error-text">{__(failMessage)}</div>}
|
||||||
</Form>
|
</Form>
|
||||||
|
<div className="card__actions">
|
||||||
|
<Button button="link" label={__('Cancel')} onClick={closeModal} />
|
||||||
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue