mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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 {
|
import {
|
||||||
checkNetworkAndAccountSupports1559,
|
checkNetworkAndAccountSupports1559,
|
||||||
getCurrentNetwork,
|
getCurrentNetwork,
|
||||||
|
getTestNetworkBackgroundColor,
|
||||||
} from '../../../selectors';
|
} from '../../../selectors';
|
||||||
import { isLegacyTransaction } from '../../../helpers/utils/transactions.util';
|
import { isLegacyTransaction } from '../../../helpers/utils/transactions.util';
|
||||||
import { formatDateWithYearContext } from '../../../helpers/utils/util';
|
import { formatDateWithYearContext } from '../../../helpers/utils/util';
|
||||||
@ -77,6 +78,7 @@ function TransactionListItemInner({
|
|||||||
const [showRetryEditGasPopover, setShowRetryEditGasPopover] = useState(false);
|
const [showRetryEditGasPopover, setShowRetryEditGasPopover] = useState(false);
|
||||||
const { supportsEIP1559 } = useGasFeeContext();
|
const { supportsEIP1559 } = useGasFeeContext();
|
||||||
const { openModal } = useTransactionModalContext();
|
const { openModal } = useTransactionModalContext();
|
||||||
|
const testNetworkBackgroundColor = useSelector(getTestNetworkBackgroundColor);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
initialTransaction: { id },
|
initialTransaction: { id },
|
||||||
@ -276,6 +278,7 @@ function TransactionListItemInner({
|
|||||||
src={currentChain?.rpcPrefs?.imageUrl}
|
src={currentChain?.rpcPrefs?.imageUrl}
|
||||||
borderWidth={1}
|
borderWidth={1}
|
||||||
borderColor={BackgroundColor.backgroundDefault}
|
borderColor={BackgroundColor.backgroundDefault}
|
||||||
|
backgroundColor={testNetworkBackgroundColor}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user