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
|
activeStep: string; // FIXME union actual steps
|
||||||
password: string;
|
password: string;
|
||||||
wallet: IFullWallet | null | undefined;
|
wallet: IFullWallet | null | undefined;
|
||||||
walletPasswordForm: any;
|
|
||||||
// Actions
|
// Actions
|
||||||
generateNewWallet: TGenerateNewWallet;
|
generateNewWallet: TGenerateNewWallet;
|
||||||
continueToPaper: TContinueToPaper;
|
continueToPaper: TContinueToPaper;
|
||||||
|
@ -44,7 +43,6 @@ class GenerateWallet extends Component<Props, {}> {
|
||||||
case 'password':
|
case 'password':
|
||||||
content = (
|
content = (
|
||||||
<AnyEnterPassword
|
<AnyEnterPassword
|
||||||
walletPasswordForm={this.props.walletPasswordForm}
|
|
||||||
generateNewWallet={this.props.generateNewWallet}
|
generateNewWallet={this.props.generateNewWallet}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -87,7 +85,6 @@ class GenerateWallet extends Component<Props, {}> {
|
||||||
|
|
||||||
function mapStateToProps(state: AppState) {
|
function mapStateToProps(state: AppState) {
|
||||||
return {
|
return {
|
||||||
walletPasswordForm: state.form.walletPasswordForm,
|
|
||||||
activeStep: state.generateWallet.activeStep,
|
activeStep: state.generateWallet.activeStep,
|
||||||
password: state.generateWallet.password,
|
password: state.generateWallet.password,
|
||||||
wallet: state.generateWallet.wallet
|
wallet: state.generateWallet.wallet
|
||||||
|
|
|
@ -9,9 +9,6 @@ Enzyme.configure({ adapter: new Adapter() });
|
||||||
|
|
||||||
it('render snapshot', () => {
|
it('render snapshot', () => {
|
||||||
const testState = {
|
const testState = {
|
||||||
form: {
|
|
||||||
walletPasswordForm: {}
|
|
||||||
},
|
|
||||||
generateWallet: {
|
generateWallet: {
|
||||||
activeStep: {},
|
activeStep: {},
|
||||||
password: {},
|
password: {},
|
||||||
|
|
|
@ -8,6 +8,5 @@ exports[`render snapshot 1`] = `
|
||||||
password={Object {}}
|
password={Object {}}
|
||||||
resetGenerateWallet={[Function]}
|
resetGenerateWallet={[Function]}
|
||||||
wallet={Object {}}
|
wallet={Object {}}
|
||||||
walletPasswordForm={Object {}}
|
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue