Commit 6869818a by G

update navigator type

parent 5a2bb994
import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext"; import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext";
import type { UnloggedUserStackScreenComponentProps } from "@/navigations/Types"; import type { MainStackScreenComponentProps } from "@/navigations/Types";
import Button from "@components/Button"; import Button from "@components/Button";
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import { Image, StyleSheet } from "react-native"; import { Image, StyleSheet } from "react-native";
const HomeUserNotLoggedIn: UnloggedUserStackScreenComponentProps<"homeUserNotLoggedIn"> = ({
const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn"> = ({
navigation, navigation,
}) => { }) => {
const { isAuthenticated } = useUserAuthenticationContext(); const { isAuthenticated } = useUserAuthenticationContext();
......
import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext"; import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext";
import type { UnloggedUserStackScreenComponentProps } from "@/navigations/Types"; import type { MainStackScreenComponentProps } from "@/navigations/Types";
import authenticateUser from "@/utils/requests/authenticateUser"; import authenticateUser from "@/utils/requests/authenticateUser";
import getUserInformations from "@/utils/requests/userInformations"; import getUserInformations from "@/utils/requests/userInformations";
import Button from "@components/Button"; import Button from "@components/Button";
...@@ -19,9 +19,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context"; ...@@ -19,9 +19,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
import { LOG } from "@logger"; import { LOG } from "@logger";
const log = LOG.extend("UserLoginScreen"); const log = LOG.extend("UserLoginScreen");
const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> = ({ const UserLoginScreen: MainStackScreenComponentProps<"userLoginScreen"> = ({ navigation }) => {
navigation,
}) => {
log.debug("UserLoginScreen"); log.debug("UserLoginScreen");
const insets = useSafeAreaInsets(); const insets = useSafeAreaInsets();
const { setAuthenticationData } = useUserAuthenticationContext(); const { setAuthenticationData } = useUserAuthenticationContext();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment