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

Add notification about the merge (#15846)

This commit is contained in:
Dan J Miller 2022-09-15 12:51:01 -02:30 committed by GitHub
parent d0adb5f697
commit 3a25733fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 71 additions and 1 deletions

View File

@ -2360,6 +2360,13 @@
"notifications14Title": {
"message": "3Box Deprecation"
},
"notifications15Description": {
"message": "There's no action required from you, so keep using your wallet as usual. Be aware of potential scams around the Merge.",
"description": "Description of a notification in the 'See What's New' popup. Advises users about the ethereum merge (https://ethereum.org/en/upgrades/merge/#main-content) and potential scams."
},
"notifications15Title": {
"message": "The Ethereum Merge is here!"
},
"notifications1Description": {
"message": "MetaMask Mobile users can now swap tokens inside their mobile wallet. Scan the QR code to get the mobile app and start swapping.",
"description": "Description of a notification in the 'See What's New' popup. Describes the swapping on mobile feature."

View File

@ -72,7 +72,11 @@ export const UI_NOTIFICATIONS = {
},
14: {
id: 14,
date: null,
date: '2022-09-15',
},
15: {
id: 15,
date: '2022-09-15',
},
};
@ -210,5 +214,15 @@ export const getTranslatedUINotifications = (t, locale) => {
)
: '',
},
15: {
...UI_NOTIFICATIONS[15],
title: t('notifications15Title'),
description: t('notifications15Description'),
date: UI_NOTIFICATIONS[15].date
? new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[15].date),
)
: '',
},
};
};

View File

@ -83,6 +83,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -73,6 +73,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -86,6 +86,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -70,6 +70,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -70,6 +70,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -122,6 +122,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -73,6 +73,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -69,6 +69,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -42,6 +42,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -70,6 +70,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -70,6 +70,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -63,6 +63,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -79,6 +79,9 @@
},
"14": {
"isShown": true
},
"15": {
"isShown": true
}
}
},

View File

@ -829,6 +829,7 @@ function getAllowedAnnouncementIds(state) {
12: false,
13: true,
14: threeBoxSyncingAllowed,
15: true,
};
}