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

UX: Use System Theme for tooltip (#19954)

This commit is contained in:
David Walsh 2023-07-11 13:23:07 -05:00 committed by GitHub
parent 145280374d
commit a8ad19da32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,6 @@ export const TokenListItem = ({
}) => {
const t = useI18nContext();
const primaryTokenImage = useSelector(getNativeCurrencyImage);
const dataTheme = document.documentElement.getAttribute('data-theme');
const trackEvent = useContext(MetaMetricsContext);
const chainId = useSelector(getCurrentChainId);
const badgeWrapperImage =
@ -125,7 +124,6 @@ export const TokenListItem = ({
html={title}
disabled={title?.length < 12}
tooltipInnerClassName="multichain-token-list-item__tooltip"
theme={dataTheme === 'light' ? 'dark' : 'light'}
>
<Text
fontWeight={FontWeight.Medium}