diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-07 14:42:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 14:42:15 -0400 |
commit | 766c55c52071ecabc40aa527d6196c39eff01b5c (patch) | |
tree | 22921694ff36e40c1514f110a838febd47b9c140 /src/routes/main/MainStackScreen.tsx | |
parent | f88193340ef5110080732d37c6a6ab69013f7b36 (diff) | |
parent | d2347eef0e22c7d47f090e6ce0a8a2c50506c894 (diff) |
Merge pull request #485 from sotech117/tma931-remove-search-on-bottom-navbar
[TMA-931] Remove Search on Bottom Navbar
Diffstat (limited to 'src/routes/main/MainStackScreen.tsx')
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index 65a695f5..948f37b8 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -26,7 +26,6 @@ import { PrivacyScreen, ProfileScreen, RequestContactsAccess, - SearchScreen, SettingsScreen, SocialMediaTaggs, SuggestedPeopleScreen, @@ -60,22 +59,22 @@ interface MainStackProps { const MainStackScreen: React.FC<MainStackProps> = ({route}) => { const {screenType} = route.params; - const isSearchTab = screenType === ScreenType.Search; const isNotificationsTab = screenType === ScreenType.Notifications; const isSuggestedPeopleTab = screenType === ScreenType.SuggestedPeople; + const isUploadTab = screenType === ScreenType.Upload; const initialRouteName = (() => { switch (screenType) { case ScreenType.Profile: return 'Profile'; - case ScreenType.Search: - return 'Search'; case ScreenType.Notifications: return 'Notifications'; case ScreenType.SuggestedPeople: return 'SuggestedPeople'; case ScreenType.Chat: return 'ChatList'; + case ScreenType.Upload: + return 'Upload'; } })(); @@ -130,10 +129,10 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { initialParams={{screenType}} /> )} - {isSearchTab && ( + {isUploadTab && ( <MainStack.Screen - name="Search" - component={SearchScreen} + name="Upload" + component={CameraScreen} initialParams={{screenType}} /> )} |