1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00
metamask-extension/shared/notifications/institutional/index.js

36 lines
881 B
JavaScript
Raw Normal View History

export const UI_INSTITUTIONAL_NOTIFICATIONS = {
1: {
id: 11,
date: '2022-08-28',
image: {
src: 'images/portfolio.svg',
},
hideDate: true,
descriptionInBullets: true,
},
};
export const getTranslatedInstitutionalUINotifications = (t, locale) => {
const formattedLocale = locale.replace('_', '-');
return {
1: {
...UI_INSTITUTIONAL_NOTIFICATIONS[11],
title: 'Portfolio dashboard',
description: [
'Portfolio snapshots',
'Filtering by account and network',
'Sector and protocol allocation',
'Improved navigation',
],
date: new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_INSTITUTIONAL_NOTIFICATIONS[11].date),
),
customButton: {
name: 'mmi-portfolio',
text: t('viewPortfolioDashboard'),
logo: true,
},
},
};
};