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

@@ -44,6 +44,8 @@ export const CommissionComponent = observer((props) => {
},
];
if (store.authentication.userData.role === "Customer Service") columns.pop();
const handleCancel = () => {
setIdData("");
store.commission.visibleModalCommission = false;

View File

@@ -123,6 +123,8 @@ export const PartnerComponent = observer((props) => {
),
},
];
if (store.authentication.userData.role === "Customer Service") columns.pop();
const deleteData = async (id) => {
try {

View File

@@ -130,6 +130,8 @@ export const SupplierComponent = observer((props) => {
},
];
if (store.authentication.userData.role === "Customer Service") columns.pop();
const deleteData = async (id) => {
try {
console.log(id);