From 2f507b898fe7f366d0ad714273ebe1cb86587394 Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Mon, 15 Feb 2021 13:11:37 -0800 Subject: notification view variable changes --- src/screens/main/NotificationsScreen.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index 6fa1a272..4979c8d8 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -30,7 +30,7 @@ const NotificationsScreen: React.FC = () => { (state: RootState) => state.user, ); const [refreshing, setRefreshing] = useState(false); - const [noActivity, setNoActivity] = useState(false); + const [noNotification, setNoNotification] = useState(false); // used for figuring out which ones are unread const [lastViewed, setLastViewed] = useState( undefined, @@ -130,7 +130,7 @@ const NotificationsScreen: React.FC = () => { {title: 'Yesterday', data: yesterdays}, {title: 'This Week', data: thisWeeks}, ]); - setNoActivity( + setNoNotification( todays.length === 0 && yesterdays.length === 0 && thisWeeks.length === 0, ); }, [lastViewed, notifications]); @@ -157,13 +157,13 @@ const NotificationsScreen: React.FC = () => { Notifications - {noActivity === true && ( + {noNotification === true && ( )} - {noActivity === false && ( + {noNotification === false && (