1
0
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:
ryanml 2022-07-18 16:41:10 -07:00 committed by GitHub
parent 0e0f2b4bb0
commit e38cc863a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@ export const UI_NOTIFICATIONS = {
},
};
export const getTranslatedUINoficiations = (t, locale) => {
export const getTranslatedUINotifications = (t, locale) => {
const formattedLocale = locale.replace('_', '-');
return {
1: {

View File

@ -10,7 +10,7 @@ import Button from '../../ui/button';
import Popover from '../../ui/popover';
import Typography from '../../ui/typography';
import { updateViewedNotifications } from '../../../store/actions';
import { getTranslatedUINoficiations } from '../../../../shared/notifications';
import { getTranslatedUINotifications } from '../../../../shared/notifications';
import { getSortedAnnouncementsToShow } from '../../../selectors';
import {
BUILD_QUOTE_ROUTE,
@ -241,7 +241,7 @@ export default function WhatsNewPopup({ onClose }) {
>
<div className="whats-new-popup__notifications">
{notifications.map(({ id }, index) => {
const notification = getTranslatedUINoficiations(t, locale)[id];
const notification = getTranslatedUINotifications(t, locale)[id];
const isLast = index === notifications.length - 1;
// Display the swaps notification with full image
return index === 0 || id === 1

View File

@ -822,10 +822,10 @@ function getAllowedAnnouncementIds(state) {
6: false,
7: false,
8: supportsWebHid && currentKeyringIsLedger && currentlyUsingLedgerLive,
9: getIsMainnet(state),
9: false,
10: 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,
};
}