diff --git a/src/ui/modal/modalWalletEncrypt/view.jsx b/src/ui/modal/modalWalletEncrypt/view.jsx index e4c2bd22a..935383de9 100644 --- a/src/ui/modal/modalWalletEncrypt/view.jsx +++ b/src/ui/modal/modalWalletEncrypt/view.jsx @@ -1,6 +1,6 @@ // @flow 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 Button from 'component/button'; @@ -94,9 +94,7 @@ class ModalWalletEncrypt extends React.PureComponent { isOpen title={__('Encrypt Wallet')} contentLabel={__('Encrypt Wallet')} - type="confirm" - confirmButtonLabel={__('Encrypt Wallet')} - abortButtonLabel={__('Cancel')} + type="custom" onConfirmed={() => this.submitEncryptForm()} onAborted={closeModal} > @@ -135,6 +133,7 @@ class ModalWalletEncrypt extends React.PureComponent { )} } error={understandError === true ? 'You must enter "I understand"' : false} label={__('Enter "I understand"')} placeholder={__('Dear computer, I understand')} @@ -144,6 +143,9 @@ class ModalWalletEncrypt extends React.PureComponent { /> {failMessage &&
{__(failMessage)}
} +
+
); }