From 80283f74a5c872d176369b59df12a90db5d3b6dd Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 9 Apr 2024 16:34:01 -0700 Subject: [PATCH] chore(incentives): Update notification for incentives season 4 (#436) --- src/constants/notifications.ts | 2 +- src/hooks/useNotificationTypes.tsx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/constants/notifications.ts b/src/constants/notifications.ts index b4aadbf2c..f0e614bc1 100644 --- a/src/constants/notifications.ts +++ b/src/constants/notifications.ts @@ -159,7 +159,7 @@ export type TransferNotifcation = { }; export enum ReleaseUpdateNotificationIds { - IncentivesS3 = 'incentives-s3', + IncentivesS4 = 'incentives-s4', IncentivesDistributedS2 = 'incentives-distributed-s2', } diff --git a/src/hooks/useNotificationTypes.tsx b/src/hooks/useNotificationTypes.tsx index 2ddada809..94c139583 100644 --- a/src/hooks/useNotificationTypes.tsx +++ b/src/hooks/useNotificationTypes.tsx @@ -241,27 +241,27 @@ export const notificationTypes: NotificationTypeConfig[] = [ useTrigger: ({ trigger }) => { const { chainTokenLabel } = useTokenConfigs(); const stringGetter = useStringGetter(); - const expirationDate = new Date('2024-03-08T23:59:59'); + const expirationDate = new Date('2024-05-09T23:59:59'); const currentDate = new Date(); useEffect(() => { if (currentDate <= expirationDate) { trigger( - ReleaseUpdateNotificationIds.IncentivesS3, + ReleaseUpdateNotificationIds.IncentivesS4, { icon: , title: stringGetter({ key: 'NOTIFICATIONS.INCENTIVES_SEASON_BEGUN.TITLE' }), body: stringGetter({ key: 'NOTIFICATIONS.INCENTIVES_SEASON_BEGUN.BODY', params: { - SEASON_NUMBER: '3', - PREV_SEASON_NUMBER: '1', - DYDX_AMOUNT: '34', - USDC_AMOUNT: '100', + SEASON_NUMBER: '4', + PREV_SEASON_NUMBER: '2', + DYDX_AMOUNT: '16', + USDC_AMOUNT: '50', }, }), toastSensitivity: 'foreground', - groupKey: ReleaseUpdateNotificationIds.IncentivesS3, + groupKey: ReleaseUpdateNotificationIds.IncentivesS4, }, [] ); @@ -312,7 +312,7 @@ export const notificationTypes: NotificationTypeConfig[] = [ const navigate = useNavigate(); return (notificationId: string) => { - if (notificationId === ReleaseUpdateNotificationIds.IncentivesS3) { + if (notificationId === ReleaseUpdateNotificationIds.IncentivesS4) { navigate(`${chainTokenLabel}/${TokenRoute.TradingRewards}`); } else if (notificationId === ReleaseUpdateNotificationIds.IncentivesDistributedS2) { navigate(`${chainTokenLabel}/${TokenRoute.StakingRewards}`);