1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01: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 GitHub
parent 6546aad334
commit 0129ea913f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 860 additions and 0 deletions

View File

@ -2737,6 +2737,15 @@
"notifications21Title": {
"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": {
"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."

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%',
},
},
22: {
id: 22,
date: null,
image: {
src: 'images/global-menu-block-explorer.svg',
width: '100%',
},
},
};
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,
isShown: true,
},
22: {
date: null,
id: 22,
isShown: true,
},
},
},
AppStateController: {