Skip to content
Snippets Groups Projects
Commit a01778f9 authored by Esther Regina's avatar Esther Regina
Browse files

fix: route back log in

parent 84c30b0f
Branches
Tags
1 merge request!7fix: delete required password & uname update adminkursus, fixed back admin kursus
......@@ -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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment