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

fix: route replace

parent a01778f9
1 merge request!7fix: delete required password & uname update adminkursus, fixed back admin kursus
......@@ -44,7 +44,7 @@ const Create = () => {
<div className="w-full mb-2">
<span className="text-[#F875AA] font-bold text-2xl hover:cursor-pointer" onClick={(e) => {
e.preventDefault()
router.push('/adminkursus')
router.replace('/adminkursus')
}}>Back</span>
</div>
<h1 className="text-[#F875AA] font-extrabold text-5xl mb-20 text-center">Create Admin Kursus</h1>
......
......@@ -70,7 +70,7 @@ const Edit = () => {
<div className="w-full mb-2">
<span className="text-[#F875AA] font-bold text-2xl hover:cursor-pointer" onClick={(e) => {
e.preventDefault()
router.back("/adminkursus")
router.replace("/adminkursus")
}}>Back</span>
</div>
<h1 className="text-[#F875AA] font-extrabold text-5xl mb-20 text-center">Update Admin Kursus</h1>
......
......@@ -85,7 +85,7 @@ const Index = () => {
<div className="w-full mb-2">
<span className="text-[#F875AA] font-bold text-2xl hover:cursor-pointer" onClick={(e) => {
e.preventDefault()
router.push("/dashboard/owner")
router.replace("/dashboard/owner")
}}>Back</span>
</div>
<div className="flex flex-row align-middle justify-between">
......
......@@ -12,7 +12,7 @@ const Login = () => {
<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={
()=>window.location.replace("/")}>Back</button>
()=>router.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