-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0091a25
commit 482de39
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,7 @@ import { | |
import { useSession } from "@supabase/auth-helpers-react"; | ||
import { toast } from "react-hot-toast"; | ||
import { AiOutlineGithub, AiOutlineGoogle } from "react-icons/ai"; | ||
import { Footer } from "src/layout/Footer"; | ||
import { Navbar } from "src/layout/Navbar"; | ||
import Layout from "src/layout/Layout"; | ||
import { supabase } from "src/lib/api/supabase"; | ||
import useUser from "src/store/useUser"; | ||
|
||
|
@@ -60,6 +59,7 @@ export function AuthenticationForm(props: PaperProps) { | |
<form onSubmit={onSubmit}> | ||
<Stack> | ||
<TextInput | ||
name="email" | ||
required | ||
label="Email" | ||
placeholder="[email protected]" | ||
|
@@ -69,6 +69,7 @@ export function AuthenticationForm(props: PaperProps) { | |
/> | ||
|
||
<PasswordInput | ||
name="password" | ||
required | ||
label="Password" | ||
placeholder="∗∗∗∗∗∗∗∗∗∗∗" | ||
|
@@ -190,11 +191,10 @@ const SignIn = () => { | |
}, [isReady, session, push, isPasswordReset]); | ||
|
||
return ( | ||
<div> | ||
<Layout> | ||
<Head> | ||
<title>Sign In - JSON Crack</title> | ||
</Head> | ||
<Navbar /> | ||
<Paper mt={50} shadow="xs" mx="auto" maw={400} p="lg" withBorder> | ||
{isPasswordReset ? <ResetPassword /> : <AuthenticationForm />} | ||
</Paper> | ||
|
@@ -203,9 +203,7 @@ const SignIn = () => { | |
Don't have an account? | ||
</Anchor> | ||
</Center> | ||
|
||
<Footer /> | ||
</div> | ||
</Layout> | ||
); | ||
}; | ||
|
||
|