41 lines
847 B
TypeScript
41 lines
847 B
TypeScript
import { useState } from 'react'
|
|
|
|
// import { supabase } from '@/lib/supabase'
|
|
import { LoginInput } from '../ui/LoginInput'
|
|
import { SubmitButton } from '../ui/SubmitButton'
|
|
|
|
export function ExternalLoginForm() {
|
|
const [email, setEmail] = useState('')
|
|
const [password, setPassword] = useState('')
|
|
|
|
const submit = async () => {
|
|
/* await supabase.auth.signInWithPassword({
|
|
email,
|
|
password,
|
|
})*/
|
|
}
|
|
|
|
return (
|
|
<form
|
|
className="space-y-4"
|
|
onSubmit={(e) => {
|
|
e.preventDefault()
|
|
submit()
|
|
}}
|
|
>
|
|
<LoginInput
|
|
label="Correo electrónico"
|
|
value={email}
|
|
onChange={setEmail}
|
|
/>
|
|
<LoginInput
|
|
label="Contraseña"
|
|
type="password"
|
|
value={password}
|
|
onChange={setPassword}
|
|
/>
|
|
<SubmitButton />
|
|
</form>
|
|
)
|
|
}
|