@@ -17,7 +17,7 @@ export default function LoginPage() {
17
17
const [ email , setEmail ] = useState ( "" )
18
18
const [ password , setPassword ] = useState ( "" )
19
19
const [ isLoading , setIsLoading ] = useState ( false )
20
- const { signIn, signInWithGoogle } = useAuth ( )
20
+ const { signIn } = useAuth ( )
21
21
const { toast } = useToast ( )
22
22
const router = useRouter ( )
23
23
@@ -42,22 +42,6 @@ export default function LoginPage() {
42
42
}
43
43
}
44
44
45
- const handleGoogleSignIn = async ( ) => {
46
- try {
47
- await signInWithGoogle ( )
48
- toast ( {
49
- title : "Success!" ,
50
- description : "You have successfully logged in with Google." ,
51
- } )
52
- } catch ( error ) {
53
- toast ( {
54
- title : "Error" ,
55
- description : "Failed to sign in with Google. Please try again." ,
56
- variant : "destructive" ,
57
- } )
58
- }
59
- }
60
-
61
45
return (
62
46
< div className = "container flex items-center justify-center min-h-[calc(100vh-8rem)] py-12" >
63
47
< Card className = "w-full max-w-md" >
@@ -86,9 +70,9 @@ export default function LoginPage() {
86
70
< div className = "space-y-2" >
87
71
< div className = "flex items-center justify-between" >
88
72
< Label htmlFor = "password" > Password</ Label >
89
- < Link href = "/auth/forgot-password" className = "text-sm text-purple-600 hover:text-purple-700" >
73
+ { /* <Link href="/auth/forgot-password" className="text-sm text-purple-600 hover:text-purple-700">
90
74
Forgot password?
91
- </ Link >
75
+ </Link> */ }
92
76
</ div >
93
77
< Input
94
78
id = "password"
@@ -110,23 +94,6 @@ export default function LoginPage() {
110
94
) }
111
95
</ Button >
112
96
</ form >
113
- < div className = "relative" >
114
- < div className = "absolute inset-0 flex items-center" >
115
- < span className = "w-full border-t" />
116
- </ div >
117
- < div className = "relative flex justify-center text-xs uppercase" >
118
- < span className = "bg-background px-2 text-muted-foreground" > Or continue with</ span >
119
- </ div >
120
- </ div >
121
- < Button variant = "outline" type = "button" className = "w-full" onClick = { handleGoogleSignIn } >
122
- < svg className = "mr-2 h-4 w-4" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" width = "24" height = "24" >
123
- < path
124
- fill = "currentColor"
125
- d = "M12 22q-2.05 0-3.875-.788t-3.188-2.15-2.137-3.175T2 12q0-2.075.788-3.887t2.15-3.175 3.175-2.138T12 2q2.075 0 3.887.788t3.175 2.15 2.138 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188-3.175 2.137T12 22Z"
126
- />
127
- </ svg >
128
- Google
129
- </ Button >
130
97
</ CardContent >
131
98
< CardFooter className = "flex flex-col space-y-4" >
132
99
< div className = "text-center text-sm" >
0 commit comments