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

[MMI] Removed institutional portfolio dashboard (#19842)

* Removed institutional portfolio dashboard

* Fixed eslint

* Removed unused key
This commit is contained in:
Albert Olivé 2023-06-30 15:19:59 +02:00 committed by GitHub
parent a3f811957e
commit 17c5964735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 42 deletions

View File

@ -673,9 +673,6 @@
"coingecko": {
"message": "CoinGecko"
},
"compliance": {
"message": "Compliance"
},
"complianceActivatedDesc": {
"message": "You can now use compliance in MetaMask Institutional. Receiving AML/CFT analysis within the confirmation screen on all the addresses you interact with."
},

View File

@ -9,9 +9,6 @@ import {
///: BEGIN:ONLY_INCLUDE_IN(snaps)
NOTIFICATIONS_ROUTE,
///: END:ONLY_INCLUDE_IN(snaps)
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
COMPLIANCE_FEATURE_ROUTE,
///: END:ONLY_INCLUDE_IN
} from '../../../helpers/constants/routes';
import { lockMetamask } from '../../../store/actions';
import { useI18nContext } from '../../../hooks/useI18nContext';
@ -23,12 +20,7 @@ import {
} from '../../component-library';
import { Menu, MenuItem } from '../../ui/menu';
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
import {
ENVIRONMENT_TYPE_FULLSCREEN,
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
ENVIRONMENT_TYPE_POPUP,
///: END:ONLY_INCLUDE_IN
} from '../../../../shared/constants/app';
import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../shared/constants/app';
import { SUPPORT_LINK } from '../../../../shared/lib/ui-utils';
///: BEGIN:ONLY_INCLUDE_IN(build-beta,build-flask)
import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common';
@ -114,8 +106,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => {
{
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
<>
{mmiPortfolioEnabled && (
mmiPortfolioEnabled && (
<MenuItem
iconName={IconName.Diagram}
onClick={() => {
@ -130,28 +121,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => {
>
{t('portfolioDashboard')}
</MenuItem>
)}
<MenuItem
iconName={IconName.Compliance}
onClick={() => {
trackEvent({
category: MetaMetricsEventCategory.Navigation,
event: MetaMetricsEventName.UserClickedCompliance,
});
if (getEnvironmentType() === ENVIRONMENT_TYPE_POPUP) {
global.platform.openExtensionInBrowser(
COMPLIANCE_FEATURE_ROUTE,
);
} else {
history.push(COMPLIANCE_FEATURE_ROUTE);
}
}}
data-testid="global-menu-mmi-compliance"
>
{t('compliance')}
</MenuItem>
</>
)
///: END:ONLY_INCLUDE_IN
}