From bd2f89805d0bb1c2f1d08fe8d91099aa4f109d35 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@thetaggid.com>
Date: Tue, 29 Dec 2020 20:21:24 -0500
Subject: [TMA-461] Notifications Screen (#151)

* renamed ProfileStack to MainStack, created initial notifications data type

* cleaned up code

* added notifications to redux

* finished sectioned list

* updated types to make more sense

* finished sectioned notifications by date

* updated notification type and tested mock backend integration

* finished read or unread logic

* minor changes

* another minor fix

* finished integration

* moved stuff

* added ability to navigate to user profile

Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
---
 src/routes/tabs/NavigationBar.tsx | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'src/routes/tabs/NavigationBar.tsx')

diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx
index f3043696..9d7d4b12 100644
--- a/src/routes/tabs/NavigationBar.tsx
+++ b/src/routes/tabs/NavigationBar.tsx
@@ -2,7 +2,7 @@ import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
 import React, {Fragment} from 'react';
 import {NavigationIcon} from '../../components';
 import {ScreenType} from '../../types';
-import Profile from '../profile/ProfileStackScreen';
+import MainStackScreen from '../main/MainStackScreen';
 
 const Tabs = createBottomTabNavigator();
 
@@ -39,18 +39,19 @@ const NavigationBar: React.FC = () => {
           bottom: '1%',
         },
       }}>
-      {/* Removed for Alpha for now */}
-      {/* <Tabs.Screen name="Home" component={Home} />
-      <Tabs.Screen name="Notifications" component={Notifications} />
-      <Tabs.Screen name="Upload" component={Upload} /> */}
+      <Tabs.Screen
+        name="Notifications"
+        component={MainStackScreen}
+        initialParams={{screenType: ScreenType.Notifications}}
+      />
       <Tabs.Screen
         name="Search"
-        component={Profile}
+        component={MainStackScreen}
         initialParams={{screenType: ScreenType.Search}}
       />
       <Tabs.Screen
         name="Profile"
-        component={Profile}
+        component={MainStackScreen}
         initialParams={{screenType: ScreenType.Profile}}
       />
     </Tabs.Navigator>
-- 
cgit v1.2.3-70-g09d2

