From a01778f9adf4b2f9d28234c782af6667a5da25fd Mon Sep 17 00:00:00 2001
From: estherregina <18221086@std.stei.itb.ac.id>
Date: Wed, 22 Nov 2023 13:56:31 +0700
Subject: [PATCH] fix: route back log in

---
 pages/auth/login.jsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pages/auth/login.jsx b/pages/auth/login.jsx
index cdd1202..b1cb255 100644
--- a/pages/auth/login.jsx
+++ b/pages/auth/login.jsx
@@ -7,14 +7,12 @@ const Login = () => {
   const [username, setUsername] = useState("")
   const [password, setPassword] = useState("")
   const router = useRouter()
-  const handleGoBack = () => {
-    router.back()
-  }
 
   return (
     <main className="min-h-screen px-14 py-7 bg-[#FFF6F6] flex flex-col">
       <div className="fex flex-row w-full">
-        <button className="text-xl text-[#F875AA] font-extrabold" onClick={handleGoBack}>Back</button>
+        <button className="text-xl text-[#F875AA] font-extrabold" onClick={
+              ()=>window.location.replace("/")}>Back</button>
       </div>
       <div className="flex flex-col w-1/2 align-middle justify-around mx-auto my-auto">
         <h1 className="text-center font-extrabold text-5xl text-[#F875AA]">Log In</h1>
-- 
GitLab