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

Show 3box deprecation message in whats new (#15763)

* Show 3box deprecation message in whats new

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add . after message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Change deprecation notification message and remove date

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
This commit is contained in:
Olusegun Akintayo 2022-09-13 22:51:46 +04:00 committed by Dan Miller
parent 7ffcad3328
commit 5316fc682e
20 changed files with 79 additions and 0 deletions

View File

@ -2334,6 +2334,16 @@
"notifications13Title": {
"message": "Add Popular Networks"
},
"notifications14ActionText": {
"message": "Show backup settings"
},
"notifications14Description": {
"message": "We're deprecating our 3Box data feature in early October. To backup and restore your wallet manually, use the \"Backup now\" button in Advanced Settings.",
"description": "Description of a notification in the 'See What's New' popup. Describes 3box deprecation."
},
"notifications14Title": {
"message": "3Box Deprecation"
},
"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

@ -70,6 +70,10 @@ export const UI_NOTIFICATIONS = {
id: 13,
date: '2022-09-15',
},
14: {
id: 14,
date: null,
},
};
export const getTranslatedUINotifications = (t, locale) => {
@ -195,5 +199,16 @@ export const getTranslatedUINotifications = (t, locale) => {
new Date(UI_NOTIFICATIONS[13].date),
),
},
14: {
...UI_NOTIFICATIONS[14],
title: t('notifications14Title'),
description: t('notifications14Description'),
actionText: t('notifications14ActionText'),
date: UI_NOTIFICATIONS[14].date
? new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[14].date),
)
: '',
},
};
};

View File

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

View File

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

View File

@ -65,6 +65,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -82,6 +82,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -66,6 +66,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -66,6 +66,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -119,6 +119,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -65,6 +65,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -65,6 +65,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

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

View File

@ -65,6 +65,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -39,6 +39,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -66,6 +66,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -66,6 +66,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -59,6 +59,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -75,6 +75,9 @@
},
"13": {
"isShown": true
},
"14": {
"isShown": true
}
}
},

View File

@ -58,6 +58,10 @@ function getActionFunctionById(id, history) {
updateViewedNotifications({ 13: true });
history.push(`${EXPERIMENTAL_ROUTE}#show-custom-network`);
},
14: () => {
updateViewedNotifications({ 14: true });
history.push(`${ADVANCED_ROUTE}#backup-userdata`);
},
};
return actionFunctions[id];

View File

@ -817,6 +817,7 @@ function getAllowedAnnouncementIds(state) {
const supportsWebHid = window.navigator.hid !== undefined;
const currentlyUsingLedgerLive =
getLedgerTransportType(state) === LEDGER_TRANSPORT_TYPES.LIVE;
const { threeBoxSyncingAllowed } = state.metamask;
return {
1: false,
@ -832,6 +833,7 @@ function getAllowedAnnouncementIds(state) {
11: true,
12: false,
13: true,
14: threeBoxSyncingAllowed,
};
}