Initialize toast hook in Login component

cgen-cfdbdd13eb7e4e868bd6115aae22845b
This commit is contained in:
Builder.io 2025-08-16 04:20:33 +00:00
parent e9fb43706b
commit ba86ca54b0

View file

@ -34,6 +34,7 @@ export default function Login() {
const [fullName, setFullName] = useState("");
const navigate = useNavigate();
const { signIn, signUp, signInWithOAuth, user, loading } = useAuth();
const { success: toastSuccess, error: toastError } = useAethexToast();
// Redirect if already logged in
useEffect(() => {