mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
UX: Use System Theme for tooltip (#19954)
This commit is contained in:
parent
145280374d
commit
a8ad19da32
@ -42,7 +42,6 @@ export const TokenListItem = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
const primaryTokenImage = useSelector(getNativeCurrencyImage);
|
const primaryTokenImage = useSelector(getNativeCurrencyImage);
|
||||||
const dataTheme = document.documentElement.getAttribute('data-theme');
|
|
||||||
const trackEvent = useContext(MetaMetricsContext);
|
const trackEvent = useContext(MetaMetricsContext);
|
||||||
const chainId = useSelector(getCurrentChainId);
|
const chainId = useSelector(getCurrentChainId);
|
||||||
const badgeWrapperImage =
|
const badgeWrapperImage =
|
||||||
@ -125,7 +124,6 @@ export const TokenListItem = ({
|
|||||||
html={title}
|
html={title}
|
||||||
disabled={title?.length < 12}
|
disabled={title?.length < 12}
|
||||||
tooltipInnerClassName="multichain-token-list-item__tooltip"
|
tooltipInnerClassName="multichain-token-list-item__tooltip"
|
||||||
theme={dataTheme === 'light' ? 'dark' : 'light'}
|
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
fontWeight={FontWeight.Medium}
|
fontWeight={FontWeight.Medium}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user