aboutsummaryrefslogtreecommitdiff
path: root/src/screens/main/NotificationsScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-30 13:41:13 -0400
committerGitHub <noreply@github.com>2021-03-30 13:41:13 -0400
commite74f7d6572ed6cff565ecccbbb4561430ec7912f (patch)
treeaff5459717cf357ab0a77e18eb653557039f6a81 /src/screens/main/NotificationsScreen.tsx
parent7245be26646fedbd720e3d84b7fc4e52feda2d28 (diff)
parent976b6393d5d2be18e7b70447ef49f8d1b801b835 (diff)
Merge pull request #340 from shravyaramesh/tma744-private-accounts-notification-prompt
[TMA-744] Private accounts notification prompt
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r--src/screens/main/NotificationsScreen.tsx18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx
index 68437f2b..4697704c 100644
--- a/src/screens/main/NotificationsScreen.tsx
+++ b/src/screens/main/NotificationsScreen.tsx
@@ -1,13 +1,7 @@
import AsyncStorage from '@react-native-community/async-storage';
import {useFocusEffect} from '@react-navigation/native';
import moment from 'moment';
-import React, {
- Fragment,
- ReactElement,
- useCallback,
- useEffect,
- useState,
-} from 'react';
+import React, {useCallback, useEffect, useState} from 'react';
import {
Image,
RefreshControl,
@@ -20,11 +14,9 @@ import {
import {TouchableOpacity} from 'react-native-gesture-handler';
import {SafeAreaView} from 'react-native-safe-area-context';
import {useDispatch, useSelector} from 'react-redux';
-import {TabsGradient, TaggPrompt} from '../../components';
-import {
- InviteFriendsPrompt,
- Notification,
-} from '../../components/notifications';
+import {PrivateAccountsPrompt} from '../../components/notifications/NotificationPrompts';
+import {TabsGradient} from '../../components';
+import {Notification} from '../../components/notifications';
import {
loadUserNotifications,
updateNewNotificationReceived,
@@ -270,7 +262,7 @@ const NotificationsScreen: React.FC = () => {
renderItem={renderNotification}
renderSectionHeader={renderSectionHeader}
renderSectionFooter={renderSectionFooter}
- ListHeaderComponent={<InviteFriendsPrompt />}
+ ListHeaderComponent={<PrivateAccountsPrompt />}
refreshControl={
<RefreshControl refreshing={refreshing} onRefresh={onRefresh} />
}