diff --git a/src/components/auth/LoginForm.tsx b/src/components/auth/LoginForm.tsx index 780dc02..9d964af 100644 --- a/src/components/auth/LoginForm.tsx +++ b/src/components/auth/LoginForm.tsx @@ -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('');