1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

remove portfolio action

This commit is contained in:
Matthias Kretschmann 2023-03-16 14:06:33 +00:00
parent 8054da5d4e
commit d1e7b4295f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -21,17 +21,11 @@ import { MetaMetricsContext } from '../../../contexts/metametrics';
import { import {
EVENT, EVENT,
EVENT_NAMES, EVENT_NAMES,
CONTEXT_PROPS, // CONTEXT_PROPS,
} from '../../../../shared/constants/metametrics'; } from '../../../../shared/constants/metametrics';
import Spinner from '../../ui/spinner'; import Spinner from '../../ui/spinner';
import { startNewDraftTransaction } from '../../../ducks/send'; import { startNewDraftTransaction } from '../../../ducks/send';
import { AssetType } from '../../../../shared/constants/transaction'; import { AssetType } from '../../../../shared/constants/transaction';
import {
ButtonIcon,
BUTTON_ICON_SIZES,
ICON_NAMES,
} from '../../component-library';
import { IconColor } from '../../../helpers/constants/design-system';
import WalletOverview from './wallet-overview'; import WalletOverview from './wallet-overview';
const EthOverview = ({ className }) => { const EthOverview = ({ className }) => {
@ -76,34 +70,6 @@ const EthOverview = ({ className }) => {
{balanceIsCached ? ( {balanceIsCached ? (
<span className="eth-overview__cached-star">*</span> <span className="eth-overview__cached-star">*</span>
) : null} ) : null}
<ButtonIcon
className="eth-overview__portfolio-button"
data-testid="home__portfolio-site"
color={IconColor.primaryDefault}
iconName={ICON_NAMES.DIAGRAM}
ariaLabel={t('portfolio')}
size={BUTTON_ICON_SIZES.LG}
onClick={() => {
const portfolioUrl = process.env.PORTFOLIO_URL;
global.platform.openTab({
url: `${portfolioUrl}?metamaskEntry=ext`,
});
trackEvent(
{
category: EVENT.CATEGORIES.HOME,
event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED,
properties: {
url: portfolioUrl,
},
},
{
contextPropsIntoEventProperties: [
CONTEXT_PROPS.PAGE_TITLE,
],
},
);
}}
/>
</div> </div>
{showFiat && balance && ( {showFiat && balance && (
<UserPreferencedCurrencyDisplay <UserPreferencedCurrencyDisplay