View on GitHub
File Changes
// });

                      
type Props = {
-
  onContinue: Date,
+
  onContinue: Function,
+
  onClose: Function,
};

                      
@observer
  // };
  render() {
    // const { intl } = this.context;
-
    const { onContinue } = this.props;
+
    const { onContinue, onClose } = this.props;
    const isSubmitting = false;

                      
    const actions = [
      {
        className: isSubmitting ? styles.isSubmitting : null,
        label: 'Continue',
        primary: true,
-
        onClick: this.submit,
+
        onClick: onContinue,
      },
    ];

                      
        title="Wallet recovery phrase verification"
        actions={actions}
        closeOnOverlayClick
-
        onClose={onContinue}
+
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
        <p>
// });

                      
type Props = {
-
  onContinue: Date,
+
  onVerify: Function,
+
  onClose: Function,
+
};
+

                      
+
type State = {
+
  isVeryfying: boolean,
};

                      
@observer
-
export default class WalletRecoveryPhraseStep1 extends Component<Props> {
+
export default class WalletRecoveryPhraseStep1 extends Component<Props, State> {
  // static contextTypes = {
  //   intl: intlShape.isRequired,
  // };
+

                      
+
  state = {
+
    isVeryfying: false,
+
  };
+

                      
+
  handleVerify = () => {
+
    this.setState({
+
      isVeryfying: true,
+
    });
+
    this.props.onVerify();
+
  };
+

                      
  render() {
    // const { intl } = this.context;
-
    const { onContinue } = this.props;
-
    const isSubmitting = false;
+
    const { onClose } = this.props;
+
    const { isVeryfying } = this.state;

                      
    const actions = [
      {
-
        className: isSubmitting ? styles.isSubmitting : null,
-
        label: 'Continue',
+
        className: isVeryfying ? styles.isVeryfying : null,
+
        label: 'Verify',
        primary: true,
        onClick: this.submit,
+
        disabled: isVeryfying,
      },
    ];

                      
        title="Wallet recovery phrase verification"
        actions={actions}
        closeOnOverlayClick
-
        onClose={onContinue}
+
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
        <p>
  handleContinue = () => {};

                      
  render() {
-
    return <WalletRecoveryPhraseStep1Dialog onContinue={this.handleContinue} />;
+
    // daedalus.actions.dialogs.closeActiveDialog
+
    return (
+
      <WalletRecoveryPhraseStep1Dialog
+
        onContinue={this.handleContinue}
+
        onClose={() => {}}
+
      />
+
    );
  }
}
  new Wallet({
    id: generateHash(),
    amount: new BigNumber(amount).dividedBy(LOVELACES_PER_ADA),
+
    createdAt: new Date(),
    name,
    assurance: 'normal',
    hasPassword: false,