aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screens/main/NotificationsScreen.tsx8
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}