Bug Fixing
This commit is contained in:
@@ -40,7 +40,7 @@ export const CategoryComponent = observer((props) => {
|
||||
key: "code",
|
||||
},
|
||||
{
|
||||
title: "Category Name",
|
||||
title: "Kategori",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@ export const CommissionComponent = observer((props) => {
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "Name",
|
||||
title: "Nama",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
@@ -45,7 +45,7 @@ export const CommissionComponent = observer((props) => {
|
||||
];
|
||||
|
||||
if (store.authentication.userData.role === "Customer Service") columns.pop();
|
||||
|
||||
|
||||
const handleCancel = () => {
|
||||
setIdData("");
|
||||
store.commission.visibleModalCommission = false;
|
||||
|
||||
@@ -71,7 +71,7 @@ export const PartnerComponent = observer((props) => {
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "Name",
|
||||
title: "Nama",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
@@ -123,7 +123,7 @@ export const PartnerComponent = observer((props) => {
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
if (store.authentication.userData.role === "Customer Service") columns.pop();
|
||||
|
||||
const deleteData = async (id) => {
|
||||
|
||||
@@ -242,10 +242,10 @@ export const ProductComponent = observer((props) => {
|
||||
color: "#fff",
|
||||
}}
|
||||
>
|
||||
Remove Filter
|
||||
Hapus Filter
|
||||
</Button>,
|
||||
<Button key={"cancel"} onClick={handleCancelFilter}>
|
||||
Cancel
|
||||
Batal
|
||||
</Button>,
|
||||
<Button
|
||||
key={"submit"}
|
||||
@@ -255,7 +255,7 @@ export const ProductComponent = observer((props) => {
|
||||
color: "#fff",
|
||||
}}
|
||||
>
|
||||
Apply
|
||||
Terapkan
|
||||
</Button>,
|
||||
];
|
||||
|
||||
|
||||
@@ -42,17 +42,17 @@ export const SubcategoryComponent = observer((props) => {
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "Code",
|
||||
title: "Kode",
|
||||
dataIndex: "code",
|
||||
key: "code",
|
||||
},
|
||||
{
|
||||
title: "Sub Category Name",
|
||||
title: "Sub Kategori",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
{
|
||||
title: "Category",
|
||||
title: "Kategori",
|
||||
dataIndex: "categoryName",
|
||||
key: "categoryName",
|
||||
},
|
||||
|
||||
@@ -65,7 +65,7 @@ export const SupplierComponent = observer((props) => {
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "Name",
|
||||
title: "Nama",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
@@ -131,7 +131,7 @@ export const SupplierComponent = observer((props) => {
|
||||
];
|
||||
|
||||
if (store.authentication.userData.role === "Customer Service") columns.pop();
|
||||
|
||||
|
||||
const deleteData = async (id) => {
|
||||
try {
|
||||
console.log(id);
|
||||
|
||||
Reference in New Issue
Block a user