1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Ensure we pass history to UnlockPage component (#8017)

* Add .isRequired to history propType definition

* Ensure we pass history down to the component
This commit is contained in:
ricky 2020-02-10 12:42:59 -05:00 committed by GitHub
parent 1a1e0b43d0
commit 8c81f9d530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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