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:
parent
a4a5580785
commit
85de65f470
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user