From eda24aab4fad9ae20bbddb02f00d68b5a0c26fb2 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 3 Aug 2023 09:16:01 -0500 Subject: [PATCH] Fix 'Global Menu Explorer / Account Details' What's New (#20371) --- shared/notifications/index.js | 1 - ui/components/app/whats-new-popup/whats-new-popup.js | 4 ++++ ui/selectors/selectors.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/notifications/index.js b/shared/notifications/index.js index bc74e3222..f5d496b8b 100644 --- a/shared/notifications/index.js +++ b/shared/notifications/index.js @@ -119,7 +119,6 @@ export const UI_NOTIFICATIONS = { date: null, image: { src: 'images/global-menu-block-explorer.svg', - width: '100%', }, }, }; 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 5743cc841..ba9675113 100644 --- a/ui/components/app/whats-new-popup/whats-new-popup.js +++ b/ui/components/app/whats-new-popup/whats-new-popup.js @@ -100,6 +100,9 @@ function getActionFunctionById(id, history) { updateViewedNotifications({ 21: true }); history.push(PREPARE_SWAP_ROUTE); }, + 22: () => { + updateViewedNotifications({ 22: true }); + }, }; return actionFunctions[id]; @@ -360,6 +363,7 @@ export default function WhatsNewPopup({ 18: renderFirstNotification, 19: renderFirstNotification, 21: renderFirstNotification, + 22: renderFirstNotification, }; return ( diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index a07c73788..2559c5340 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -995,6 +995,7 @@ function getAllowedAnnouncementIds(state) { 19: false, 20: currentKeyringIsLedger && isFirefox, 21: isSwapsChain, + 22: true, }; }