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

fix: route replace

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