diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-30 12:26:05 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-30 12:26:05 -0700 |
commit | 357ac758abf9a2a2364b265051743bbbc50893a6 (patch) | |
tree | 1cacdc8fbd680240c3eaee5df905d0ca75766203 | |
parent | e462253fbe8019b1fcb1e9c3928f722cfd6bbb54 (diff) |
Added notification
-rw-r--r-- | src/components/notifications/Notification.tsx | 1 | ||||
-rw-r--r-- | src/types/types.ts | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index 8143e396..8e008cf9 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -91,6 +91,7 @@ const Notification: React.FC<NotificationProps> = (props) => { const onNotificationTap = async () => { switch (notification_type) { + case 'INVT_ONBRD': case 'FRD_ACPT': case 'FRD_REQ': if (!userXInStore(state, screenType, id)) { diff --git a/src/types/types.ts b/src/types/types.ts index 86f16f05..766bf798 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -246,7 +246,9 @@ export type TypeOfNotification = // notification_object is MomentType | 'MOM_3+' // notification_object is MomentType - | 'MOM_FRIEND'; + | 'MOM_FRIEND' + // notification_object is undefined + | 'INVT_ONBRD'; export type UniversityBadge = { id: number; |