summaryrefslogtreecommitdiff
path: root/src/pages/my/profile.js
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-12-30 09:56:08 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-12-30 09:56:08 +0700
commitff830e7c6d6fbd768a91ed8f0e7be460656a6d29 (patch)
tree86a4797323f080a459591d45b9d5a34ee869ab65 /src/pages/my/profile.js
parentba6eca41f673f8db4d9f686fb7dab2358a4dc5eb (diff)
Address page
Diffstat (limited to 'src/pages/my/profile.js')
-rw-r--r--src/pages/my/profile.js10
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