diff options
author | Ashm Walia <ashmwalia@outlook.com> | 2021-02-04 00:50:30 -0800 |
---|---|---|
committer | Ashm Walia <ashmwalia@outlook.com> | 2021-02-04 00:50:30 -0800 |
commit | 607e0204ab1a8b2d91a96ba58abb34423bcbfcca (patch) | |
tree | 44addce73b0d7a498f17135e30ff2102061b68a5 /src/screens/main/NotificationsScreen.tsx | |
parent | bbeb05fcc6b1c45f9273d1a78000c8f143d62451 (diff) |
Clean refactoring for comment notifications
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} /> ); |