diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-20 13:33:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 13:33:43 -0400 |
commit | dc182f12756f9f719cad416316165b72723b6624 (patch) | |
tree | 39db0020e34875b739e16fbe670163438fe6a078 /src/screens/main/NotificationsScreen.tsx | |
parent | 1c410aa6d32f0e9221ce718008b8923d4d1b5514 (diff) | |
parent | a4a7b8a80207c0a921464f7c64bc53821e47ce13 (diff) |
Merge pull request #318 from shravyaramesh/tma719-invite-prompt
[TMA-719] Invite friends notification prompt
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index 57dea6f5..68437f2b 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -21,7 +21,10 @@ 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 {Notification} from '../../components/notifications'; +import { + InviteFriendsPrompt, + Notification, +} from '../../components/notifications'; import { loadUserNotifications, updateNewNotificationReceived, @@ -252,30 +255,6 @@ const NotificationsScreen: React.FC = () => { return null; }; - const SPPromptNotification: ReactElement = showSPNotifyPopUp ? ( - <TaggPrompt - messageHeader={'New Suggested People Page!'} - messageBody={ - <> - <Text> - A new page where you can discover new profiles. Just press the new{' '} - </Text> - <Image - style={styles.icon} - source={require('../../assets/navigationIcons/home.png')} - /> - <Text> button on the tab bar to check it out!</Text> - </> - } - logoType={'tagg'} - hideCloseButton={true} - noPadding={true} - onClose={() => {}} - /> - ) : ( - <Fragment /> - ); - return ( <View style={styles.background}> <SafeAreaView> @@ -291,7 +270,7 @@ const NotificationsScreen: React.FC = () => { renderItem={renderNotification} renderSectionHeader={renderSectionHeader} renderSectionFooter={renderSectionFooter} - ListHeaderComponent={SPPromptNotification} + ListHeaderComponent={<InviteFriendsPrompt />} refreshControl={ <RefreshControl refreshing={refreshing} onRefresh={onRefresh} /> } @@ -359,11 +338,6 @@ const styles = StyleSheet.create({ flex: 1, justifyContent: 'center', }, - icon: { - width: 20, - height: 20, - tintColor: 'grey', - }, }); export default NotificationsScreen; |