s'
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user