Files
cally/components/pages/main/Entry.tsx
Milan Paunovic 926af6212b Remove dark theme
2024-09-23 20:58:48 +02:00

20 lines
631 B
TypeScript

import {View} from "react-native-ui-lib";
import React, {useState} from "react";
import SignUpPage from "./SignUpPage";
import SignInPage from "./SignInPage";
import {ResetPasswordPage} from "@/components/pages/main/ResetPasswordPage";
const Entry = () => {
const [tab, setTab] = useState<"register" | "login" | "reset-password">("login");
return (
<View>
{tab === "register" && <SignUpPage setTab={setTab}/>}
{tab === "login" && <SignInPage setTab={setTab}/>}
{tab === "reset-password" && <ResetPasswordPage setTab={setTab}/>}
</View>
);
};
export default Entry;