Skip to content

Commit

Permalink
verify email address notification
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jun 13, 2024
1 parent 39ad0a1 commit 4720442
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { FC } from "react"
// import * as yup from "yup"
import * as yup from "yup"

import * as page from "codeforlife/components/page"
// import { useSearchParamEntries } from "codeforlife/hooks"
// import { tryValidateSync } from "codeforlife/utils/schema"
import { useSearchParamEntries } from "codeforlife/hooks"
import { tryValidateSync } from "codeforlife/utils/schema"

import IndyForm from "./IndyForm"
import * as studentForms from "./studentForms"
Expand All @@ -20,20 +20,20 @@ export interface LoginProps {
}

const Login: FC<LoginProps> = ({ form }) => {
// const searchParams = tryValidateSync(
// useSearchParamEntries(),
// yup.object({
// verifyEmail: yup.boolean().default(false),
// }),
// )
const searchParams = tryValidateSync(
useSearchParamEntries(),
yup.object({
verifyEmail: yup.boolean().default(false),
}),
)

return (
<page.Page>
{/* {searchParams?.verifyEmail && (
{searchParams?.verifyEmail && (
<page.Notification>
Your email address was successfully verified, please log in.
</page.Notification>
)} */}
)}
<page.Section maxWidth="md">
{
{
Expand Down

0 comments on commit 4720442

Please sign in to comment.