Remove dark mode and transaction insights announcements (#15279)

feature/default_network_editable
ryanml 2 years ago committed by GitHub
parent 0e0f2b4bb0
commit e38cc863a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      shared/notifications/index.js
  2. 4
      ui/components/app/whats-new-popup/whats-new-popup.js
  3. 4
      ui/selectors/selectors.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: {

@ -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

@ -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,
};
}

Loading…
Cancel
Save