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:
parent
1a1e0b43d0
commit
8c81f9d530
@ -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,
|
||||||
|
@ -55,6 +55,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
|
|||||||
onImport,
|
onImport,
|
||||||
onRestore: onImport,
|
onRestore: onImport,
|
||||||
onSubmit: ownPropsSubmit || onSubmit,
|
onSubmit: ownPropsSubmit || onSubmit,
|
||||||
|
history,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user