mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +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_STATUSES.REJECTED]: FAIL_COLOR,
|
||||||
[TRANSACTION_GROUP_STATUSES.CANCELLED]: FAIL_COLOR,
|
[TRANSACTION_GROUP_STATUSES.CANCELLED]: FAIL_COLOR,
|
||||||
[TRANSACTION_STATUSES.DROPPED]: FAIL_COLOR,
|
[TRANSACTION_STATUSES.DROPPED]: FAIL_COLOR,
|
||||||
|
[TRANSACTION_STATUSES.SUBMITTED]: PENDING_COLOR,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function TransactionIcon({ status, category }) {
|
export default function TransactionIcon({ status, category }) {
|
||||||
@ -63,6 +64,8 @@ TransactionIcon.propTypes = {
|
|||||||
TRANSACTION_STATUSES.REJECTED,
|
TRANSACTION_STATUSES.REJECTED,
|
||||||
TRANSACTION_GROUP_STATUSES.CANCELLED,
|
TRANSACTION_GROUP_STATUSES.CANCELLED,
|
||||||
TRANSACTION_STATUSES.DROPPED,
|
TRANSACTION_STATUSES.DROPPED,
|
||||||
|
TRANSACTION_STATUSES.CONFIRMED,
|
||||||
|
TRANSACTION_STATUSES.SUBMITTED,
|
||||||
]).isRequired,
|
]).isRequired,
|
||||||
category: PropTypes.oneOf([
|
category: PropTypes.oneOf([
|
||||||
TRANSACTION_GROUP_CATEGORIES.APPROVAL,
|
TRANSACTION_GROUP_CATEGORIES.APPROVAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user