From 607e0204ab1a8b2d91a96ba58abb34423bcbfcca Mon Sep 17 00:00:00 2001 From: Ashm Walia Date: Thu, 4 Feb 2021 00:50:30 -0800 Subject: Clean refactoring for comment notifications --- src/screens/main/NotificationsScreen.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/screens/main/NotificationsScreen.tsx') 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 = () => { ); -- cgit v1.2.3-70-g09d2