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

Prevent propType errors in for TransactionIcon statuses (#11316)

This commit is contained in:
David Walsh 2021-06-23 18:39:06 -05:00 committed by GitHub
parent a4a5580785
commit 85de65f470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ const COLOR_MAP = {
[TRANSACTION_STATUSES.REJECTED]: FAIL_COLOR,
[TRANSACTION_GROUP_STATUSES.CANCELLED]: FAIL_COLOR,
[TRANSACTION_STATUSES.DROPPED]: FAIL_COLOR,
[TRANSACTION_STATUSES.SUBMITTED]: PENDING_COLOR,
};
export default function TransactionIcon({ status, category }) {
@ -63,6 +64,8 @@ TransactionIcon.propTypes = {
TRANSACTION_STATUSES.REJECTED,
TRANSACTION_GROUP_STATUSES.CANCELLED,
TRANSACTION_STATUSES.DROPPED,
TRANSACTION_STATUSES.CONFIRMED,
TRANSACTION_STATUSES.SUBMITTED,
]).isRequired,
category: PropTypes.oneOf([
TRANSACTION_GROUP_CATEGORIES.APPROVAL,