Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
refactor: move settings screen to a dedicated folder
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp17 committed Dec 13, 2023
1 parent 4a1113a commit 65c82f8
Show file tree
Hide file tree
Showing 11 changed files with 344 additions and 268 deletions.
21 changes: 9 additions & 12 deletions src/navigation/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ import useAuthStore from "../store/auth";
import { useColorModeValue } from "native-base";
import { StackParamList } from "./types";
import { retrieveAuthFromStorage } from "./onAppStart";

import Logo from "../components/NavHeader/Logo";

import SplashScreen from "../screens/Splash";
import AppIntroScreen from "../screens/AppIntro";
import LoginScreen from "../screens/auth/Login";
import SignUpScreen from "../screens/auth/SignUp";
import TabsNavigation from "./Tabs";
import EditReportScreen from "../screens/EditReport";
import EndoscoreScreen from "../screens/Endoscore";
import EditReportSymptomScreen from "../screens/EditReportSymptom";
import ViewReportScreen from "../screens/ViewReport";
import SettingsScreen from "../screens/Settings";
import FeedbackScreen from "../screens/Feedback";
import DeleteAccountScreen from "../screens/DeleteAccount";
import ChangePasswordScreen from "../screens/ChangePassword";
import ChangeEmailScreen from "../screens/ChangeEmail";
import AppIntroScreen from "../screens/AppIntro";
import DeleteDataScreen from "../screens/DeleteData";
import ShareCodeScreen from "../screens/ShareCode";
import SettingsScreen from "../screens/Settings";
import FeedbackScreen from "../screens/Settings/Feedback";
import DeleteAccountScreen from "../screens/Settings/DeleteAccount";
import ChangePasswordScreen from "../screens/Settings/ChangePassword";
import ChangeEmailScreen from "../screens/Settings/ChangeEmail";
import DeleteDataScreen from "../screens/Settings/DeleteData";

const Stack = createNativeStackNavigator<StackParamList>();

Expand Down Expand Up @@ -94,10 +94,7 @@ function StackNavigation() {
name="EditReportSymptom"
component={EditReportSymptomScreen}
/>
<Stack.Screen
name="ShareCode"
component={ShareCodeScreen}
/>
<Stack.Screen name="ShareCode" component={ShareCodeScreen} />
</>
)}
</Stack.Navigator>
Expand Down
97 changes: 0 additions & 97 deletions src/screens/ChangeEmail.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/screens/ChangePassword.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions src/screens/DeleteAccount.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions src/screens/DeleteData.tsx

This file was deleted.

Loading

0 comments on commit 65c82f8

Please sign in to comment.