1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Fix #20162 - Add Whats New for Global Menu (#20244)

This commit is contained in:
David Walsh 2023-07-28 18:18:22 -05:00 committed by Dan J Miller
parent 3c65b3fa7f
commit f1af52cbdf
4 changed files with 860 additions and 0 deletions

View File

@ -2722,6 +2722,15 @@
"notifications21Title": { "notifications21Title": {
"message": "Introducing new and refreshed Swaps!" "message": "Introducing new and refreshed Swaps!"
}, },
"notifications22ActionText": {
"message": "Got it"
},
"notifications22Description": {
"message": "💡 Just click the global menu or account menu to find them!"
},
"notifications22Title": {
"message": "Looking for your account details or the block explorer URL?"
},
"notifications3ActionText": { "notifications3ActionText": {
"message": "Read more", "message": "Read more",
"description": "The 'call to action' on the button, or link, of the 'Stay secure' notification. Upon clicking, users will be taken to a page about security on the metamask support website." "description": "The 'call to action' on the button, or link, of the 'Stay secure' notification. Upon clicking, users will be taken to a page about security on the metamask support website."

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 400 KiB

View File

@ -114,6 +114,14 @@ export const UI_NOTIFICATIONS = {
width: '100%', width: '100%',
}, },
}, },
22: {
id: 22,
date: null,
image: {
src: 'images/global-menu-block-explorer.svg',
width: '100%',
},
},
}; };
export const getTranslatedUINotifications = (t, locale) => { export const getTranslatedUINotifications = (t, locale) => {
@ -313,5 +321,16 @@ export const getTranslatedUINotifications = (t, locale) => {
) )
: '', : '',
}, },
22: {
...UI_NOTIFICATIONS[22],
title: t('notifications22Title'),
description: t('notifications22Description'),
actionText: t('notifications22ActionText'),
date: UI_NOTIFICATIONS[22].date
? new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[22].date),
)
: '',
},
}; };
}; };

View File

@ -141,6 +141,11 @@ function defaultFixture() {
id: 21, id: 21,
isShown: true, isShown: true,
}, },
22: {
date: null,
id: 22,
isShown: true,
},
}, },
}, },
AppStateController: { AppStateController: {