Skip to content
Snippets Groups Projects
Commit 2f1979d0 authored by Michelle Lim's avatar Michelle Lim
Browse files

Merge branch 'develop' into 'main'

chore: merge develop into main

See merge request !10
parents a449c781 c59463e3
Branches
Tags
1 merge request!10chore: merge develop into main
......@@ -18,7 +18,7 @@ const Edit = () => {
}
const body = JSON.stringify({
username,
password
password: password || undefined
})
const updateQuery = await fetch("https://rpl-backend-production.up.railway.app/v1/adminkursus/update/" + router.query.id, {
method: "PATCH",
......@@ -79,6 +79,7 @@ const Edit = () => {
handleUpdate()
return;
}}>
<div className="flex flex-row align-middle justify-between">
<span className="h-min my-auto font-bold text-lg">user_id</span>
<input disabled value={user_id} type="tel" required className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
......@@ -87,13 +88,13 @@ const Edit = () => {
<span className="h-min my-auto font-bold text-lg">Username</span>
<input value={username} onChange={(e) => {
setusername(e.target.value)
}} type="text" className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
}} type="text" className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
</div>
<div className="flex flex-row align-middle justify-between">
<span className="h-min my-auto font-bold text-lg">Password</span>
<input value={password} onChange={(e) => {
setpassword(e.target.value)
}} type="password" className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
}} type="password" className="drop-shadow-xl w-2/3 p-2 rounded-xl" />
</div>
<input type="submit" className="bg-[#F875AA] px-8 py-3 text-xl font-bold text-white rounded-xl mx-auto" value={"Simpan"} />
......
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