Skip to content

Commit

Permalink
add verify email button
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeyan Khimani authored and Reeyan Khimani committed Nov 3, 2024
1 parent cbbbfaf commit 471fc35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/dashboard/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const Box = () => {
const [first_name, setFirstName] = useState(null);
const [last_name, setLastName] = useState(null);
const [github, setGitub] = useState(null);
const [verifed, setVerified] = useState(null);

const { toast } = useToast();
const router = useRouter();
Expand Down Expand Up @@ -59,6 +60,9 @@ export const Box = () => {
setFirstName((await data.user_page?.userInfo.first_name) || null);
setLastName((await data.user_page?.userInfo.last_name) || null);
setGitub((await data.user_page?.userInfo.users?.githubLogin) || null);
setVerified(
(await data.user_page?.userInfo.email_verification?.verifed) || null,
);
setLoading(false);
}
fetchUser();
Expand Down Expand Up @@ -262,6 +266,11 @@ export const Box = () => {
</a>
)}
</div>
{!verifed ? (
<div className="m-4 flex h-14 w-3/4 items-center justify-center rounded-full bg-GloryGloryRed py-2 align-middle text-white lg:w-11/12">
Verify your email
</div>
) : null}
<h2 className="text-left text-lg font-semibold">Biography</h2>
<Textarea
placeholder="ExistingBio"
Expand Down

0 comments on commit 471fc35

Please sign in to comment.