@@ -11,25 +11,28 @@ import Tooltip from '@mui/material/Tooltip'
1111import { useTxErrorMessage } from '../../hooks/useTxErrorMessage'
1212import { TFunction } from 'i18next'
1313
14- type TxStatus = 'unknown' | 'success' | 'failure' | 'pending'
14+ type TxStatus = 'unknown' | 'success' | 'partialsuccess' | ' failure' | 'pending'
1515
1616const statusBgColor : Record < TxStatus , string > = {
1717 unknown : COLORS . grayMediumLight ,
18- success : COLORS . honeydew ,
18+ success : COLORS . eucalyptus ,
19+ partialsuccess : COLORS . honeydew ,
1920 failure : COLORS . linen ,
2021 pending : COLORS . warningLight ,
2122}
2223
2324const statusFgColor : Record < TxStatus , string > = {
2425 unknown : COLORS . grayMedium ,
25- success : COLORS . eucalyptus ,
26+ success : COLORS . honeydew ,
27+ partialsuccess : COLORS . eucalyptus ,
2628 failure : COLORS . errorIndicatorBackground ,
2729 pending : COLORS . warningColor ,
2830}
2931
3032export const statusIcon : Record < TxStatus , ReactNode > = {
3133 unknown : < HelpIcon color = "inherit" fontSize = "inherit" /> ,
32- success : < CheckCircleIcon color = "success" fontSize = "inherit" /> ,
34+ success : < CheckCircleIcon color = "inherit" fontSize = "inherit" /> ,
35+ partialsuccess : < CheckCircleIcon color = "success" fontSize = "inherit" /> ,
3336 failure : < CancelIcon color = "error" fontSize = "inherit" /> ,
3437 pending : < HelpIcon color = "inherit" fontSize = "inherit" /> ,
3538}
@@ -119,6 +122,7 @@ export const StatusIcon: FC<StatusIconProps> = ({ success, error, withText, meth
119122 const statusLabel : Record < TxStatus , string > = {
120123 unknown : t ( 'common.unknown' ) ,
121124 success : t ( 'common.success' ) ,
125+ partialsuccess : t ( 'common.partial_success' ) ,
122126 failure : t ( 'common.failed' ) ,
123127 pending : getPendingLabel ( t , method , withText ) ,
124128 }
0 commit comments