From 0a6fabc7d2e3327ccb988a6152b791ba8314ce31 Mon Sep 17 00:00:00 2001 From: "ajat91.sudrajat" Date: Fri, 7 Jan 2022 19:55:37 +0700 Subject: [PATCH] Perbaikan PPOB --- src/pages/Membership/DetailUser.js | 87 +++++++++++++++++++----------- src/pages/Profile/Profile.js | 17 +----- 2 files changed, 58 insertions(+), 46 deletions(-) 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 - + { /> - - - - - )}