Redux-Form Refactor - Bugfix (#469)
* remove walletPasswordForm prop * update GenerateWallet test * update GenerateWallet snapshot
This commit is contained in:
parent
c9ad43969c
commit
142ec4adc8
|
@ -21,7 +21,6 @@ interface Props {
|
|||
activeStep: string; // FIXME union actual steps
|
||||
password: string;
|
||||
wallet: IFullWallet | null | undefined;
|
||||
walletPasswordForm: any;
|
||||
// Actions
|
||||
generateNewWallet: TGenerateNewWallet;
|
||||
continueToPaper: TContinueToPaper;
|
||||
|
@ -44,7 +43,6 @@ class GenerateWallet extends Component<Props, {}> {
|
|||
case 'password':
|
||||
content = (
|
||||
<AnyEnterPassword
|
||||
walletPasswordForm={this.props.walletPasswordForm}
|
||||
generateNewWallet={this.props.generateNewWallet}
|
||||
/>
|
||||
);
|
||||
|
@ -87,7 +85,6 @@ class GenerateWallet extends Component<Props, {}> {
|
|||
|
||||
function mapStateToProps(state: AppState) {
|
||||
return {
|
||||
walletPasswordForm: state.form.walletPasswordForm,
|
||||
activeStep: state.generateWallet.activeStep,
|
||||
password: state.generateWallet.password,
|
||||
wallet: state.generateWallet.wallet
|
||||
|
|
|
@ -9,9 +9,6 @@ Enzyme.configure({ adapter: new Adapter() });
|
|||
|
||||
it('render snapshot', () => {
|
||||
const testState = {
|
||||
form: {
|
||||
walletPasswordForm: {}
|
||||
},
|
||||
generateWallet: {
|
||||
activeStep: {},
|
||||
password: {},
|
||||
|
|
|
@ -8,6 +8,5 @@ exports[`render snapshot 1`] = `
|
|||
password={Object {}}
|
||||
resetGenerateWallet={[Function]}
|
||||
wallet={Object {}}
|
||||
walletPasswordForm={Object {}}
|
||||
/>
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue