mirror of
https://github.com/urosran/cally.git
synced 2025-07-11 15:47:21 +00:00
20 lines
655 B
TypeScript
20 lines
655 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 style={{height:"100%"}}>
|
|
{tab === "register" && <SignUpPage setTab={setTab}/>}
|
|
{tab === "login" && <SignInPage setTab={setTab}/>}
|
|
{tab === "reset-password" && <ResetPasswordPage setTab={setTab}/>}
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default Entry;
|