@@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button';
44import { Input } from '@/components/ui/input' ;
55import { Card } from '@/components/ui/card' ;
66import { ArrowLeft , Mail , Lock , User , AlertCircle } from 'lucide-react' ;
7- import { signInWithGoogle , signInWithEmail , signUpWithEmail } from '@/lib/supabase' ;
7+ import { signInWithEmail , signUpWithEmail } from '@/lib/supabase' ;
88import { useToast } from '@/hooks/use-toast' ;
99import Footer from '@/components/ui/Footer' ;
1010
@@ -20,21 +20,6 @@ const Auth = () => {
2020 username : '' ,
2121 } ) ;
2222
23- const handleGoogleSignIn = async ( ) => {
24- setLoading ( true ) ;
25- const { error } = await signInWithGoogle ( ) ;
26-
27- if ( error ) {
28- toast ( {
29- title : "Error" ,
30- description : error . message ,
31- variant : "destructive"
32- } ) ;
33- setLoading ( false ) ;
34- }
35- // Success will redirect automatically
36- } ;
37-
3823 const handleEmailAuth = async ( e : React . FormEvent ) => {
3924 e . preventDefault ( ) ;
4025 setLoading ( true ) ;
@@ -143,30 +128,6 @@ const Auth = () => {
143128 </ div >
144129
145130 < Card className = "bg-gradient-to-br from-gray-900/50 to-gray-800/50 border-gray-700/50 p-8" >
146- { /* Google Sign In */ }
147- < Button
148- onClick = { handleGoogleSignIn }
149- disabled = { loading }
150- className = "w-full bg-white hover:bg-gray-100 text-black font-medium py-6 mb-6"
151- >
152- < svg className = "w-5 h-5 mr-3" viewBox = "0 0 24 24" >
153- < path fill = "#4285F4" d = "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" />
154- < path fill = "#34A853" d = "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" />
155- < path fill = "#FBBC05" d = "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" />
156- < path fill = "#EA4335" d = "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" />
157- </ svg >
158- Continue with Google
159- </ Button >
160-
161- < div className = "relative mb-6" >
162- < div className = "absolute inset-0 flex items-center" >
163- < div className = "w-full border-t border-gray-700" > </ div >
164- </ div >
165- < div className = "relative flex justify-center text-sm" >
166- < span className = "px-2 bg-gray-800 text-gray-400" > Or continue with email</ span >
167- </ div >
168- </ div >
169-
170131 { /* Email/Password Form */ }
171132 < form onSubmit = { handleEmailAuth } className = "space-y-4" >
172133 { mode === 'signup' && (
0 commit comments