Tambah Role Customer Service

This commit is contained in:
2022-02-03 12:14:23 +07:00
parent 8d7d7369f4
commit 238eeb92ce
13 changed files with 476 additions and 278 deletions

View File

@@ -48,11 +48,12 @@ export const Home = observer(() => {
? await store.membership.getData()
: await store.membership.getDataBySuperior();
};
return (
<div>
{store.ui.mediaQuery.isDesktop &&
store.authentication.userData.role === "Admin" && (
(store.authentication.userData.role === "Admin" ||
store.authentication.userData.role === "Customer Service") && (
<Row
style={{
marginTop: 30,
@@ -281,8 +282,9 @@ export const Home = observer(() => {
</Card>
</Row>
)}
{store.ui.mediaQuery.isMobile &&
store.authentication.userData.role === "Admin" && (
{store.ui.mediaQuery.isMobile &&
(store.authentication.userData.role === "Admin" ||
store.authentication.userData.role === "Customer Service") && (
<Row
style={{
marginTop: 20,