Bug Fixing

This commit is contained in:
2022-02-03 18:26:58 +07:00
parent 4ea7e8d632
commit 1346d625f8
11 changed files with 64 additions and 58 deletions

View File

@@ -40,7 +40,7 @@ export const CategoryComponent = observer((props) => {
key: "code",
},
{
title: "Category Name",
title: "Kategori",
dataIndex: "name",
key: "name",
},

View File

@@ -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;

View File

@@ -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) => {

View File

@@ -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>,
];

View File

@@ -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",
},

View File

@@ -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);