Tambah Role Customer Service
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user