This commit is contained in:
eric
2026-03-12 03:55:17 -05:00
parent 7e8f0e3e40
commit 2a9bb8330c
18 changed files with 767 additions and 72 deletions

View File

@@ -13,12 +13,14 @@ import { LoginModal } from "./landing/LoginModal";
type LandingPageProps = {
onJoin: () => void;
onVerify: (userId: string) => Promise<boolean>;
onVerifyByEmail?: (email: string, password: string) => Promise<boolean>;
onVerifySuccess: () => void;
};
export function LandingPage({
onJoin,
onVerify,
onVerifyByEmail,
onVerifySuccess,
}: LandingPageProps) {
const [loginModalOpen, setLoginModalOpen] = useState(false);
@@ -36,6 +38,7 @@ export function LandingPage({
open={loginModalOpen}
onClose={() => setLoginModalOpen(false)}
onVerify={onVerify}
onVerifyByEmail={onVerifyByEmail}
onSuccess={onVerifySuccess}
/>
</>