diff --git a/pages/login.jsx b/pages/login.jsx index 121215e..7a9d1e0 100644 --- a/pages/login.jsx +++ b/pages/login.jsx @@ -1,10 +1,9 @@ import { Button, Input } from "@nextui-org/react"; import Link from "next/link"; import { useState, useMemo } from "react"; -import Oauth2 from "@/components/auth/oauth2"; +import Oauth2 from "@/components/auth/Oauth2"; import { useRouter } from "next/router"; import { EyeFilledIcon, EyeSlashFilledIcon } from "@/icons"; -import useAuthStatus from "@/hooks/useAuthStatus"; import { login } from "@/utils/firebaseAuth"; export default function Login() { @@ -31,7 +30,7 @@ export default function Login() { setIsLoading(true); try { await login(email, password); - router.replace("/") + router.replace("/"); } catch (error) { console.error("Error logging in:", error); setLoginError(true); diff --git a/pages/signup.jsx b/pages/signup.jsx index 1f48792..90b62ec 100644 --- a/pages/signup.jsx +++ b/pages/signup.jsx @@ -1,7 +1,7 @@ import { Button, Input } from "@nextui-org/react"; import Link from "next/link"; import { useState, useMemo } from "react"; -import Oauth2 from "@/components/auth/oauth2"; +import Oauth2 from "@/components/auth/Oauth2"; import { EyeFilledIcon, EyeSlashFilledIcon } from "@/icons"; import useUserActivity from "@/hooks/useUserActivity"; import { useRouter } from "next/router";