mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix signature request propTypes (#12952)
There were two propType errors in the signature request and signature request footer components. A boolean was wrongly declared as a function, and that same boolean was later declared with an invalid propType (`PropTypes.boolean` rather than `PropTypes.bool`). Both errors have been fixed.
This commit is contained in:
parent
90b656bd66
commit
fac68980e0
@ -6,7 +6,7 @@ export default class SignatureRequestFooter extends PureComponent {
|
|||||||
static propTypes = {
|
static propTypes = {
|
||||||
cancelAction: PropTypes.func.isRequired,
|
cancelAction: PropTypes.func.isRequired,
|
||||||
signAction: PropTypes.func.isRequired,
|
signAction: PropTypes.func.isRequired,
|
||||||
disabled: PropTypes.boolean,
|
disabled: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
|
@ -17,7 +17,7 @@ export default class SignatureRequest extends PureComponent {
|
|||||||
isLedgerWallet: PropTypes.bool,
|
isLedgerWallet: PropTypes.bool,
|
||||||
cancel: PropTypes.func.isRequired,
|
cancel: PropTypes.func.isRequired,
|
||||||
sign: PropTypes.func.isRequired,
|
sign: PropTypes.func.isRequired,
|
||||||
hardwareWalletRequiresConnection: PropTypes.func.isRequired,
|
hardwareWalletRequiresConnection: PropTypes.bool.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user