diff --git a/src/pages/Membership/DetailUser.js b/src/pages/Membership/DetailUser.js index 2c20247..5cf5a5d 100644 --- a/src/pages/Membership/DetailUser.js +++ b/src/pages/Membership/DetailUser.js @@ -392,36 +392,63 @@ export const DetailUser = observer(() => { : "Inaktif"} - - Foto Identitas - - - Foto Toko - - - - - - - - - - - + {store.authentication.userData.role === "Sales" && ( + + + Foto Identitas + + + Foto Toko + + + + + + + + + + + + + )} + {store.authentication.userData.role === "Supervisor" && ( + + + Foto Identitas + + + + + + + + + )} diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 69a1806..11c64cb 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -297,9 +297,7 @@ export const Profile = observer(() => { Foto Identitas - - Foto Toko - + { /> - - - - - )}