diff options
author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-02-15 13:11:37 -0800 |
---|---|---|
committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-02-15 13:11:37 -0800 |
commit | 2f507b898fe7f366d0ad714273ebe1cb86587394 (patch) | |
tree | 2c5504cf1d55b894ce69c25f7b2ddfb56fda8af6 /src | |
parent | 7932e2238515d3038bf37abbc10352be855eaadf (diff) |
notification view variable changes
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
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<moment.Moment | undefined>( 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 = () => { <Text style={styles.headerText}>Notifications</Text> <View style={styles.underline} /> </View> - {noActivity === true && ( + {noNotification === true && ( <View style={styles.emptyViewContainer}> <EmptyNotificationView /> </View> )} - {noActivity === false && ( + {noNotification === false && ( <SectionList contentContainerStyle={styles.container} sections={sectionedNotifications} |