diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index 5b83289..cb795b6 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -9,6 +9,7 @@ import { useState } from "react"; import { useRouter } from "next/navigation"; import Link from "next/link"; import { loginAsGuest, loginUser } from "@/lib/services/auth.service"; +import { ActionButton } from "@/app/components/ui/buttons/ActionButton"; import { Loader2, UserCheck, KeyRound } from "lucide-react"; /** @@ -57,7 +58,7 @@ export default function LoginPage() { * @async * @param {React.SubmitEvent} e - The form submission event. */ - const handleSubmit = async (e: React.FormEvent) => { + const handleSubmit = async (e: React.SubmitEvent) => { e.preventDefault(); const formData = new FormData(e.currentTarget); const email = formData.get("email") as string; @@ -161,23 +162,15 @@ export default function LoginPage() { /> - + {loadingType === "credentials" ? "Signing in..." : "Sign In"} +
@@ -188,24 +181,18 @@ export default function LoginPage() {
- + {loadingType === "guest" + ? "Signing in as Guest..." + : "Sign in as Guest"} +
Don't have an account yet?{" "}