mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
removed portfolio icon from eth overview (#18662)
This commit is contained in:
parent
a876eaba23
commit
cb6223b75f
@ -96,34 +96,36 @@ const EthOverview = ({ className }) => {
|
|||||||
{balanceIsCached ? (
|
{balanceIsCached ? (
|
||||||
<span className="eth-overview__cached-star">*</span>
|
<span className="eth-overview__cached-star">*</span>
|
||||||
) : null}
|
) : null}
|
||||||
<ButtonIcon
|
{process.env.MULTICHAIN ? null : (
|
||||||
className="eth-overview__portfolio-button"
|
<ButtonIcon
|
||||||
data-testid="home__portfolio-site"
|
className="eth-overview__portfolio-button"
|
||||||
color={IconColor.primaryDefault}
|
data-testid="home__portfolio-site"
|
||||||
iconName={ICON_NAMES.DIAGRAM}
|
color={IconColor.primaryDefault}
|
||||||
ariaLabel={t('portfolio')}
|
iconName={ICON_NAMES.DIAGRAM}
|
||||||
size={BUTTON_ICON_SIZES.LG}
|
ariaLabel={t('portfolio')}
|
||||||
onClick={() => {
|
size={BUTTON_ICON_SIZES.LG}
|
||||||
const portfolioUrl = process.env.PORTFOLIO_URL;
|
onClick={() => {
|
||||||
global.platform.openTab({
|
const portfolioUrl = process.env.PORTFOLIO_URL;
|
||||||
url: `${portfolioUrl}?metamaskEntry=ext`,
|
global.platform.openTab({
|
||||||
});
|
url: `${portfolioUrl}?metamaskEntry=ext`,
|
||||||
trackEvent(
|
});
|
||||||
{
|
trackEvent(
|
||||||
category: MetaMetricsEventCategory.Home,
|
{
|
||||||
event: MetaMetricsEventName.PortfolioLinkClicked,
|
category: MetaMetricsEventCategory.Home,
|
||||||
properties: {
|
event: MetaMetricsEventName.PortfolioLinkClicked,
|
||||||
url: portfolioUrl,
|
properties: {
|
||||||
|
url: portfolioUrl,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
contextPropsIntoEventProperties: [
|
||||||
contextPropsIntoEventProperties: [
|
MetaMetricsContextProp.PageTitle,
|
||||||
MetaMetricsContextProp.PageTitle,
|
],
|
||||||
],
|
},
|
||||||
},
|
);
|
||||||
);
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
)}
|
||||||
</div>
|
</div>
|
||||||
{showFiat && balance && (
|
{showFiat && balance && (
|
||||||
<UserPreferencedCurrencyDisplay
|
<UserPreferencedCurrencyDisplay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user