1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02: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:
Mark Stacey 2021-12-02 14:39:18 -03:30 committed by GitHub
parent 90b656bd66
commit fac68980e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ export default class SignatureRequestFooter extends PureComponent {
static propTypes = {
cancelAction: PropTypes.func.isRequired,
signAction: PropTypes.func.isRequired,
disabled: PropTypes.boolean,
disabled: PropTypes.bool,
};
static contextTypes = {

View File

@ -17,7 +17,7 @@ export default class SignatureRequest extends PureComponent {
isLedgerWallet: PropTypes.bool,
cancel: PropTypes.func.isRequired,
sign: PropTypes.func.isRequired,
hardwareWalletRequiresConnection: PropTypes.func.isRequired,
hardwareWalletRequiresConnection: PropTypes.bool.isRequired,
};
static contextTypes = {