This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/app/index.tsx

16 lines
354 B
TypeScript

import { Redirect } from "expo-router"
import { useAuthentication } from "@/presentation/react/contexts/Authentication"
const HomePage: React.FC = () => {
const { user } = useAuthentication()
if (user == null) {
return <Redirect href="/authentication/login" />
}
return <Redirect href="/application/habits/" />
}
export default HomePage