diff --git a/services/web/frontend/js/features/project-list/components/notifications/groups/common.tsx b/services/web/frontend/js/features/project-list/components/notifications/groups/common.tsx
index d374b57cf7..26ada1886c 100644
--- a/services/web/frontend/js/features/project-list/components/notifications/groups/common.tsx
+++ b/services/web/frontend/js/features/project-list/components/notifications/groups/common.tsx
@@ -62,9 +62,11 @@ function CommonNotification({ notification }: CommonNotificationProps) {
return (
<>
{templateKey === 'notification_project_invite' ? (
- id && handleDismiss(id)}>
-
- {accepted ? (
+ id && handleDismiss(id)}
+ body={
+ accepted ? (
}}
@@ -83,10 +85,10 @@ function CommonNotification({ notification }: CommonNotificationProps) {
shouldUnescape
tOptions={{ interpolation: { escapeValue: true } }}
/>
- )}
-
-
- {accepted ? (
+ )
+ }
+ action={
+ accepted ? (
-
+ )
+ }
+ />
) : templateKey === 'wfh_2020_upgrade_offer' ? (
- id && handleDismiss(id)}>
-
- Important notice: Your free WFH2020 upgrade came to an end on June
- 30th 2020. We're still providing a number of special initiatives to
- help you continue collaborating throughout 2020.
-
-
+ id && handleDismiss(id)}
+ body={
+ <>
+ Important notice: Your free WFH2020 upgrade came to an end on June
+ 30th 2020. We're still providing a number of special initiatives
+ to help you continue collaborating throughout 2020.
+ >
+ }
+ action={
-
-
+ }
+ />
) : templateKey === 'notification_ip_matched_affiliation' ? (
- id && handleDismiss(id)}>
-
- ]} // eslint-disable-line react/jsx-key
- values={{
- institutionName: notification.messageOpts.university_name,
- }}
- shouldUnescape
- tOptions={{ interpolation: { escapeValue: true } }}
- />
-
- {notification.messageOpts.ssoEnabled ? (
- <>
- ]} // eslint-disable-line react/jsx-key
- />
-
- {t('link_institutional_email_get_started')}{' '}
-
- {t('find_out_more_nt')}
-
- >
- ) : (
- <>
- ]} // eslint-disable-line react/jsx-key
- values={{
- institutionName: notification.messageOpts.university_name,
- }}
- shouldUnescape
- tOptions={{ interpolation: { escapeValue: true } }}
- />
-
- {t('add_email_to_claim_features')}
- >
- )}
-
-
+ id && handleDismiss(id)}
+ body={
+ <>
+ ]} // eslint-disable-line react/jsx-key
+ values={{
+ institutionName: notification.messageOpts.university_name,
+ }}
+ shouldUnescape
+ tOptions={{ interpolation: { escapeValue: true } }}
+ />
+
+ {notification.messageOpts.ssoEnabled ? (
+ <>
+ ]} // eslint-disable-line react/jsx-key
+ />
+
+ {t('link_institutional_email_get_started')}{' '}
+
+ {t('find_out_more_nt')}
+
+ >
+ ) : (
+ <>
+ ]} // eslint-disable-line react/jsx-key
+ values={{
+ institutionName: notification.messageOpts.university_name,
+ }}
+ shouldUnescape
+ tOptions={{ interpolation: { escapeValue: true } }}
+ />
+
+ {t('add_email_to_claim_features')}
+ >
+ )}
+ >
+ }
+ action={
-
+ }
+ />
) : templateKey === 'notification_tpds_file_limit' ? (
id && handleDismiss(id)}
- >
-
- Error: Your project {notification.messageOpts.projectName} has gone
- over the 2000 file limit using an integration (e.g. Dropbox or
- GitHub)
- Please decrease the size of your project to prevent further errors.
-
-
+ body={
+ <>
+ Error: Your project {notification.messageOpts.projectName} has
+ gone over the 2000 file limit using an integration (e.g. Dropbox
+ or GitHub)
+ Please decrease the size of your project to prevent further
+ errors.
+ >
+ }
+ action={
-
-
+ }
+ />
) : templateKey === 'notification_dropbox_duplicate_project_names' ? (
id && handleDismiss(id)}
- >
-
-
- ]} // eslint-disable-line react/jsx-key
- values={{ projectName: notification.messageOpts.projectName }}
- shouldUnescape
- tOptions={{ interpolation: { escapeValue: true } }}
- />
-
-
- ]} // eslint-disable-line react/jsx-key
- />{' '}
-
- {t('learn_more')}
-
- .
-
-
-
+ body={
+ <>
+
+ ]} // eslint-disable-line react/jsx-key
+ values={{ projectName: notification.messageOpts.projectName }}
+ shouldUnescape
+ tOptions={{ interpolation: { escapeValue: true } }}
+ />
+
+
+ ]} // eslint-disable-line react/jsx-key
+ />{' '}
+
+ {t('learn_more')}
+
+ .
+
+ >
+ }
+ />
) : templateKey ===
'notification_dropbox_unlinked_due_to_lapsed_reconfirmation' ? (
- id && handleDismiss(id)}>
-
- ]} // eslint-disable-line react/jsx-key
- />{' '}
- {user.features?.dropbox ? (
+ id && handleDismiss(id)}
+ body={
+ <>
]}
- />
- ) : (
- t('confirm_affiliation_to_relink_dropbox')
- )}{' '}
-
- {t('learn_more')}
-
-
-
+ i18nKey="dropbox_unlinked_premium_feature"
+ components={[]} // eslint-disable-line react/jsx-key
+ />{' '}
+ {user.features?.dropbox ? (
+ ]}
+ />
+ ) : (
+ t('confirm_affiliation_to_relink_dropbox')
+ )}{' '}
+
+ {t('learn_more')}
+
+ >
+ }
+ />
) : templateKey === 'notification_group_invitation' ? (
) : templateKey === 'notification_personal_and_group_subscriptions' ? (
id && handleDismiss(id)}
- >
-
+ body={
, ]}
/>
-
-
+ }
+ />
) : (
- id && handleDismiss(id)}>
- {html}
-
+ id && handleDismiss(id)}
+ body={html}
+ />
)}
>
)