feat: final verify trigger
This commit is contained in:
@ -1,12 +1,15 @@
|
|||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "@/components/ui/input";
|
|
||||||
import Avatar from "@/feature/Avatar";
|
import Avatar from "@/feature/Avatar";
|
||||||
import { useAuth } from "@/store/auth";
|
import { useAuth } from "@/store/auth";
|
||||||
|
import { useVerify } from "@/store/verify";
|
||||||
import type { FC } from "react";
|
import type { FC } from "react";
|
||||||
|
|
||||||
const VerifyReviewPage: FC = () => {
|
const VerifyReviewPage: FC = () => {
|
||||||
const profile = useAuth((s) => s.profile);
|
const profile = useAuth((s) => s.profile);
|
||||||
|
|
||||||
|
const verifying = useVerify((s) => s.verifying);
|
||||||
|
const finishVerify = useVerify((s) => s.verify);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-stretch gap-2 sm:max-w-sm mx-auto p-4">
|
<div className="flex flex-col items-stretch gap-2 sm:max-w-sm mx-auto p-4">
|
||||||
<h1 className="text-xl font-medium dark:text-gray-200">
|
<h1 className="text-xl font-medium dark:text-gray-200">
|
||||||
@ -29,7 +32,14 @@ const VerifyReviewPage: FC = () => {
|
|||||||
<p className="dark:text-gray-400 text-sm">{profile?.email}</p>
|
<p className="dark:text-gray-400 text-sm">{profile?.email}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button className="mt-4">Back Home</Button>
|
<Button
|
||||||
|
className="mt-4 w-full"
|
||||||
|
loading={verifying}
|
||||||
|
disabled={verifying}
|
||||||
|
onClick={finishVerify}
|
||||||
|
>
|
||||||
|
Back Home
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user