From e38cc863a4fd2c93d71f3f7ccbed1f00811ae0fb Mon Sep 17 00:00:00 2001 From: ryanml Date: Mon, 18 Jul 2022 16:41:10 -0700 Subject: [PATCH] Remove dark mode and transaction insights announcements (#15279) --- shared/notifications/index.js | 2 +- ui/components/app/whats-new-popup/whats-new-popup.js | 4 ++-- ui/selectors/selectors.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/notifications/index.js b/shared/notifications/index.js index 55ab28b3d..a721b2e00 100644 --- a/shared/notifications/index.js +++ b/shared/notifications/index.js @@ -72,7 +72,7 @@ export const UI_NOTIFICATIONS = { }, }; -export const getTranslatedUINoficiations = (t, locale) => { +export const getTranslatedUINotifications = (t, locale) => { const formattedLocale = locale.replace('_', '-'); return { 1: { diff --git a/ui/components/app/whats-new-popup/whats-new-popup.js b/ui/components/app/whats-new-popup/whats-new-popup.js index ffee9c8cf..87670992f 100644 --- a/ui/components/app/whats-new-popup/whats-new-popup.js +++ b/ui/components/app/whats-new-popup/whats-new-popup.js @@ -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 }) { >
{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 diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index f338813a9..1eca5bea3 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -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, }; }