mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
added background color of testnet to activity screen (#20068)
This commit is contained in:
parent
19d5cdb014
commit
e105a6030e
@ -51,6 +51,7 @@ import {
|
||||
import {
|
||||
checkNetworkAndAccountSupports1559,
|
||||
getCurrentNetwork,
|
||||
getTestNetworkBackgroundColor,
|
||||
} from '../../../selectors';
|
||||
import { isLegacyTransaction } from '../../../helpers/utils/transactions.util';
|
||||
import { formatDateWithYearContext } from '../../../helpers/utils/util';
|
||||
@ -77,6 +78,7 @@ function TransactionListItemInner({
|
||||
const [showRetryEditGasPopover, setShowRetryEditGasPopover] = useState(false);
|
||||
const { supportsEIP1559 } = useGasFeeContext();
|
||||
const { openModal } = useTransactionModalContext();
|
||||
const testNetworkBackgroundColor = useSelector(getTestNetworkBackgroundColor);
|
||||
|
||||
const {
|
||||
initialTransaction: { id },
|
||||
@ -276,6 +278,7 @@ function TransactionListItemInner({
|
||||
src={currentChain?.rpcPrefs?.imageUrl}
|
||||
borderWidth={1}
|
||||
borderColor={BackgroundColor.backgroundDefault}
|
||||
backgroundColor={testNetworkBackgroundColor}
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user