mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Remove dark mode and transaction insights announcements (#15279)
This commit is contained in:
parent
0e0f2b4bb0
commit
e38cc863a4
@ -72,7 +72,7 @@ export const UI_NOTIFICATIONS = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTranslatedUINoficiations = (t, locale) => {
|
export const getTranslatedUINotifications = (t, locale) => {
|
||||||
const formattedLocale = locale.replace('_', '-');
|
const formattedLocale = locale.replace('_', '-');
|
||||||
return {
|
return {
|
||||||
1: {
|
1: {
|
||||||
|
@ -10,7 +10,7 @@ import Button from '../../ui/button';
|
|||||||
import Popover from '../../ui/popover';
|
import Popover from '../../ui/popover';
|
||||||
import Typography from '../../ui/typography';
|
import Typography from '../../ui/typography';
|
||||||
import { updateViewedNotifications } from '../../../store/actions';
|
import { updateViewedNotifications } from '../../../store/actions';
|
||||||
import { getTranslatedUINoficiations } from '../../../../shared/notifications';
|
import { getTranslatedUINotifications } from '../../../../shared/notifications';
|
||||||
import { getSortedAnnouncementsToShow } from '../../../selectors';
|
import { getSortedAnnouncementsToShow } from '../../../selectors';
|
||||||
import {
|
import {
|
||||||
BUILD_QUOTE_ROUTE,
|
BUILD_QUOTE_ROUTE,
|
||||||
@ -241,7 +241,7 @@ export default function WhatsNewPopup({ onClose }) {
|
|||||||
>
|
>
|
||||||
<div className="whats-new-popup__notifications">
|
<div className="whats-new-popup__notifications">
|
||||||
{notifications.map(({ id }, index) => {
|
{notifications.map(({ id }, index) => {
|
||||||
const notification = getTranslatedUINoficiations(t, locale)[id];
|
const notification = getTranslatedUINotifications(t, locale)[id];
|
||||||
const isLast = index === notifications.length - 1;
|
const isLast = index === notifications.length - 1;
|
||||||
// Display the swaps notification with full image
|
// Display the swaps notification with full image
|
||||||
return index === 0 || id === 1
|
return index === 0 || id === 1
|
||||||
|
@ -822,10 +822,10 @@ function getAllowedAnnouncementIds(state) {
|
|||||||
6: false,
|
6: false,
|
||||||
7: false,
|
7: false,
|
||||||
8: supportsWebHid && currentKeyringIsLedger && currentlyUsingLedgerLive,
|
8: supportsWebHid && currentKeyringIsLedger && currentlyUsingLedgerLive,
|
||||||
9: getIsMainnet(state),
|
9: false,
|
||||||
10: Boolean(process.env.TOKEN_DETECTION_V2) && !process.env.IN_TEST,
|
10: Boolean(process.env.TOKEN_DETECTION_V2) && !process.env.IN_TEST,
|
||||||
11: Boolean(process.env.TOKEN_DETECTION_V2) && !process.env.IN_TEST,
|
11: Boolean(process.env.TOKEN_DETECTION_V2) && !process.env.IN_TEST,
|
||||||
12: true,
|
12: false,
|
||||||
13: true,
|
13: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user