Correcoes

This commit is contained in:
Lucas Santana 2024-12-19 19:18:59 -03:00
parent 5a1ebc1387
commit 014e71e3f1

View File

@ -2,12 +2,12 @@ import React, { useState } from 'react';
import { LogIn } from 'lucide-react'; import { LogIn } from 'lucide-react';
import { useAuth } from '../../hooks/useAuth'; import { useAuth } from '../../hooks/useAuth';
interface Props { interface LoginFormProps {
onLogin: (email: string, password: string) => void; userType: 'school' | 'teacher' | 'student';
onRegisterClick: () => void; onLogin?: (email: string, password: string) => void;
} }
export function LoginForm({ onLogin, onRegisterClick }: Props) { export function LoginForm({ userType, onLogin }: LoginFormProps) {
const [email, setEmail] = useState(''); const [email, setEmail] = useState('');
const [password, setPassword] = useState(''); const [password, setPassword] = useState('');
const [error, setError] = useState(''); const [error, setError] = useState('');