1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

added background color of testnet to activity screen (#20068)

This commit is contained in:
Nidhi Kumari 2023-07-18 19:02:00 +05:30 committed by GitHub
parent 19d5cdb014
commit e105a6030e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
/>
}
>