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:
parent
7ffcad3328
commit
5316fc682e
10
app/_locales/en/messages.json
generated
10
app/_locales/en/messages.json
generated
@ -2334,6 +2334,16 @@
|
|||||||
"notifications13Title": {
|
"notifications13Title": {
|
||||||
"message": "Add Popular Networks"
|
"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": {
|
"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.",
|
"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."
|
"description": "Description of a notification in the 'See What's New' popup. Describes the swapping on mobile feature."
|
||||||
|
@ -70,6 +70,10 @@ export const UI_NOTIFICATIONS = {
|
|||||||
id: 13,
|
id: 13,
|
||||||
date: '2022-09-15',
|
date: '2022-09-15',
|
||||||
},
|
},
|
||||||
|
14: {
|
||||||
|
id: 14,
|
||||||
|
date: null,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTranslatedUINotifications = (t, locale) => {
|
export const getTranslatedUINotifications = (t, locale) => {
|
||||||
@ -195,5 +199,16 @@ export const getTranslatedUINotifications = (t, locale) => {
|
|||||||
new Date(UI_NOTIFICATIONS[13].date),
|
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),
|
||||||
|
)
|
||||||
|
: '',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -79,6 +79,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -69,6 +69,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -82,6 +82,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -119,6 +119,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -69,6 +69,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -59,6 +59,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -75,6 +75,9 @@
|
|||||||
},
|
},
|
||||||
"13": {
|
"13": {
|
||||||
"isShown": true
|
"isShown": true
|
||||||
|
},
|
||||||
|
"14": {
|
||||||
|
"isShown": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -58,6 +58,10 @@ function getActionFunctionById(id, history) {
|
|||||||
updateViewedNotifications({ 13: true });
|
updateViewedNotifications({ 13: true });
|
||||||
history.push(`${EXPERIMENTAL_ROUTE}#show-custom-network`);
|
history.push(`${EXPERIMENTAL_ROUTE}#show-custom-network`);
|
||||||
},
|
},
|
||||||
|
14: () => {
|
||||||
|
updateViewedNotifications({ 14: true });
|
||||||
|
history.push(`${ADVANCED_ROUTE}#backup-userdata`);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return actionFunctions[id];
|
return actionFunctions[id];
|
||||||
|
@ -817,6 +817,7 @@ function getAllowedAnnouncementIds(state) {
|
|||||||
const supportsWebHid = window.navigator.hid !== undefined;
|
const supportsWebHid = window.navigator.hid !== undefined;
|
||||||
const currentlyUsingLedgerLive =
|
const currentlyUsingLedgerLive =
|
||||||
getLedgerTransportType(state) === LEDGER_TRANSPORT_TYPES.LIVE;
|
getLedgerTransportType(state) === LEDGER_TRANSPORT_TYPES.LIVE;
|
||||||
|
const { threeBoxSyncingAllowed } = state.metamask;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
1: false,
|
1: false,
|
||||||
@ -832,6 +833,7 @@ function getAllowedAnnouncementIds(state) {
|
|||||||
11: true,
|
11: true,
|
||||||
12: false,
|
12: false,
|
||||||
13: true,
|
13: true,
|
||||||
|
14: threeBoxSyncingAllowed,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user