aboutsummaryrefslogtreecommitdiff
path: root/src/routes/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/main')
-rw-r--r--src/routes/main/MainStackNavigator.tsx2
-rw-r--r--src/routes/main/MainStackScreen.tsx13
2 files changed, 7 insertions, 8 deletions
diff --git a/src/routes/main/MainStackNavigator.tsx b/src/routes/main/MainStackNavigator.tsx
index a5d73988..bc023da8 100644
--- a/src/routes/main/MainStackNavigator.tsx
+++ b/src/routes/main/MainStackNavigator.tsx
@@ -14,7 +14,7 @@ export type MainStackParams = {
SuggestedPeople: {
screenType: ScreenType;
};
- Search: {
+ Upload: {
screenType: ScreenType;
};
RequestContactsAccess: {
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}}
/>
)}