Ensure we pass history to UnlockPage component (#8017)

* Add .isRequired to history propType definition

* Ensure we pass history down to the component
feature/default_network_editable
ricky 5 years ago committed by GitHub
parent 1a1e0b43d0
commit 8c81f9d530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/pages/unlock-page/unlock-page.component.js
  2. 1
      ui/app/pages/unlock-page/unlock-page.container.js

@ -14,7 +14,7 @@ export default class UnlockPage extends Component {
}
static propTypes = {
history: PropTypes.object,
history: PropTypes.object.isRequired,
isUnlocked: PropTypes.bool,
onImport: PropTypes.func,
onRestore: PropTypes.func,

@ -55,6 +55,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
onImport,
onRestore: onImport,
onSubmit: ownPropsSubmit || onSubmit,
history,
}
}

Loading…
Cancel
Save