diff options
author | Ivan Chen <ivan@tagg.id> | 2021-02-05 17:35:05 -0500 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-02-05 17:35:05 -0500 |
commit | 231fed8c645dc29334b946dccca94fbb13116fe2 (patch) | |
tree | fc7bcd0f9e11b943d89877c621e95681e89a18d7 /src/screens/main/NotificationsScreen.tsx | |
parent | a5f746525df9bb2967c252b70e7a4e2f9daa2b8d (diff) | |
parent | bad7fac394f8ef2870a9a139fd46d0def4421bf1 (diff) |
Merge branch 'master' into TMA-579-Redesign-Snapchat-Tiktok
# Conflicts:
# src/components/common/TaggSquareButton.tsx
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index d9952aa8..f35bb22c 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -35,6 +35,9 @@ const NotificationsScreen: React.FC = () => { const {notifications} = useSelector( (state: RootState) => state.notifications, ); + + const {user: loggedInUser} = useSelector((state: RootState) => state.user); + const [sectionedNotifications, setSectionedNotifications] = useState< {title: 'Today' | 'Yesterday' | 'This Week'; data: NotificationType[]}[] >([]); @@ -130,7 +133,7 @@ const NotificationsScreen: React.FC = () => { <Notification item={item} screenType={ScreenType.Notifications} - moments={item.notification_type === 'CMT' ? loggedInUserMoments : []} + loggedInUser={loggedInUser} /> ); |