diff options
Diffstat (limited to 'src/pages/my/profile.js')
| -rw-r--r-- | src/pages/my/profile.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pages/my/profile.js b/src/pages/my/profile.js index be1a67b0..6e40230d 100644 --- a/src/pages/my/profile.js +++ b/src/pages/my/profile.js @@ -47,7 +47,7 @@ export default function MyProfile() { <AppBar title="Akun Saya" /> <form onSubmit={update} className="w-full px-4"> - { auth?.id && ( + { auth && ( <> <label className="form-label mt-4 mb-2">Email</label> <input @@ -106,22 +106,22 @@ export default function MyProfile() { ) } { editMode && ( - <div className="flex justify-end gap-x-3"> + <div className="flex gap-x-3"> <button type="button" - className="btn-light float-right mt-4" + className="btn-light flex-1 float-right mt-4" onClick={cancelEdit} > Batal </button> - <button type="submit" className="btn-yellow float-right mt-4">Simpan</button> + <button type="submit" className="btn-yellow flex-1 float-right mt-4">Simpan</button> </div> ) } { !editMode && ( <button type="button" - className="btn-light float-right mt-4" + className="btn-light float-right mt-4 w-full" onClick={() => setEditMode(true)} > Ubah Profil |
