mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
[MMI] Removed institutional portfolio dashboard (#19842)
* Removed institutional portfolio dashboard * Fixed eslint * Removed unused key
This commit is contained in:
parent
a3f811957e
commit
17c5964735
3
app/_locales/en/messages.json
generated
3
app/_locales/en/messages.json
generated
@ -673,9 +673,6 @@
|
|||||||
"coingecko": {
|
"coingecko": {
|
||||||
"message": "CoinGecko"
|
"message": "CoinGecko"
|
||||||
},
|
},
|
||||||
"compliance": {
|
|
||||||
"message": "Compliance"
|
|
||||||
},
|
|
||||||
"complianceActivatedDesc": {
|
"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."
|
"message": "You can now use compliance in MetaMask Institutional. Receiving AML/CFT analysis within the confirmation screen on all the addresses you interact with."
|
||||||
},
|
},
|
||||||
|
@ -9,9 +9,6 @@ import {
|
|||||||
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
||||||
NOTIFICATIONS_ROUTE,
|
NOTIFICATIONS_ROUTE,
|
||||||
///: END:ONLY_INCLUDE_IN(snaps)
|
///: END:ONLY_INCLUDE_IN(snaps)
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
||||||
COMPLIANCE_FEATURE_ROUTE,
|
|
||||||
///: END:ONLY_INCLUDE_IN
|
|
||||||
} from '../../../helpers/constants/routes';
|
} from '../../../helpers/constants/routes';
|
||||||
import { lockMetamask } from '../../../store/actions';
|
import { lockMetamask } from '../../../store/actions';
|
||||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
@ -23,12 +20,7 @@ import {
|
|||||||
} from '../../component-library';
|
} from '../../component-library';
|
||||||
import { Menu, MenuItem } from '../../ui/menu';
|
import { Menu, MenuItem } from '../../ui/menu';
|
||||||
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
|
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
|
||||||
import {
|
import { ENVIRONMENT_TYPE_FULLSCREEN } from '../../../../shared/constants/app';
|
||||||
ENVIRONMENT_TYPE_FULLSCREEN,
|
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
||||||
ENVIRONMENT_TYPE_POPUP,
|
|
||||||
///: END:ONLY_INCLUDE_IN
|
|
||||||
} from '../../../../shared/constants/app';
|
|
||||||
import { SUPPORT_LINK } from '../../../../shared/lib/ui-utils';
|
import { SUPPORT_LINK } from '../../../../shared/lib/ui-utils';
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-beta,build-flask)
|
///: BEGIN:ONLY_INCLUDE_IN(build-beta,build-flask)
|
||||||
import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common';
|
import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common';
|
||||||
@ -114,8 +106,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => {
|
|||||||
|
|
||||||
{
|
{
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||||
<>
|
mmiPortfolioEnabled && (
|
||||||
{mmiPortfolioEnabled && (
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
iconName={IconName.Diagram}
|
iconName={IconName.Diagram}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -130,28 +121,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => {
|
|||||||
>
|
>
|
||||||
{t('portfolioDashboard')}
|
{t('portfolioDashboard')}
|
||||||
</MenuItem>
|
</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
|
///: END:ONLY_INCLUDE_IN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user