mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-17 05:47:52 +00:00
Correcoes
This commit is contained in:
parent
5a1ebc1387
commit
014e71e3f1
@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
||||
import { LogIn } from 'lucide-react';
|
||||
import { useAuth } from '../../hooks/useAuth';
|
||||
|
||||
interface Props {
|
||||
onLogin: (email: string, password: string) => void;
|
||||
onRegisterClick: () => void;
|
||||
interface LoginFormProps {
|
||||
userType: 'school' | 'teacher' | 'student';
|
||||
onLogin?: (email: string, password: string) => void;
|
||||
}
|
||||
|
||||
export function LoginForm({ onLogin, onRegisterClick }: Props) {
|
||||
export function LoginForm({ userType, onLogin }: LoginFormProps) {
|
||||
const [email, setEmail] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
const [error, setError] = useState('');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user