From 5a9addc532c92f7657152a44b9b9822537431826 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 ece5f297b..44a555ba0 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%', }, }, ///: BEGIN:ONLY_INCLUDE_IN(blockaid) 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 8ea65c88d..7b1b0cb4f 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 }); + }, ///: BEGIN:ONLY_INCLUDE_IN(blockaid) 23: () => { updateViewedNotifications({ 23: true }); @@ -383,6 +386,7 @@ export default function WhatsNewPopup({ 18: renderFirstNotification, 19: renderFirstNotification, 21: renderFirstNotification, + 22: renderFirstNotification, ///: BEGIN:ONLY_INCLUDE_IN(blockaid) 23: renderFirstNotification, ///: END:ONLY_INCLUDE_IN diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index e1d2a0663..97dc5a612 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -1008,6 +1008,7 @@ function getAllowedAnnouncementIds(state) { 19: false, 20: currentKeyringIsLedger && isFirefox, 21: isSwapsChain, + 22: true, ///: BEGIN:ONLY_INCLUDE_IN(blockaid) 23: true, ///: END:ONLY_INCLUDE_IN