Merge branch 'develop' into 'devops-staging'

Develop

See merge request empatnusabangsa/ppob/ppob-frontend!113
This commit is contained in:
ilham dwi pratama 2022-02-02 20:15:26 +00:00
commit 008bb36d8d
20 changed files with 90 additions and 90 deletions

View File

@ -45,7 +45,7 @@ export const CategoryComponent = observer((props) => {
key: "name", key: "name",
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Space size="middle"> <Space size="middle">
@ -209,7 +209,7 @@ export const CategoryComponent = observer((props) => {
visible={store.category.visibleModalCategory} visible={store.category.visibleModalCategory}
title={idData ? "Edit Category" : "Create a new Category"} title={idData ? "Edit Category" : "Create a new Category"}
okText={idData ? "Edit" : "Create"} okText={idData ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -28,13 +28,13 @@ export const CommissionComponent = observer((props) => {
key: "name", key: "name",
}, },
{ {
title: "Amount", title: "Nominal",
dataIndex: "commission", dataIndex: "commission",
key: "commission", key: "commission",
render: (text) => <span>{text}%</span>, render: (text) => <span>{text}%</span>,
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Space size="middle"> <Space size="middle">
@ -93,7 +93,7 @@ export const CommissionComponent = observer((props) => {
visible={store.commission.visibleModalCommission} visible={store.commission.visibleModalCommission}
title={"Edit Commission"} title={"Edit Commission"}
okText={"Edit"} okText={"Edit"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -86,7 +86,7 @@ export const PartnerComponent = observer((props) => {
key: "npwp", key: "npwp",
}, },
{ {
title: "Address", title: "Alamat",
dataIndex: "address", dataIndex: "address",
key: "address", key: "address",
}, },
@ -104,7 +104,7 @@ export const PartnerComponent = observer((props) => {
), ),
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Space size="middle"> <Space size="middle">
@ -143,12 +143,12 @@ export const PartnerComponent = observer((props) => {
icon: <ExclamationCircleOutlined />, icon: <ExclamationCircleOutlined />,
okText: "Yes", okText: "Yes",
okType: "primary", okType: "primary",
cancelText: "Cancel", cancelText: "Batal",
onOk() { onOk() {
return deleteData(id); return deleteData(id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}; };
@ -273,7 +273,7 @@ export const PartnerComponent = observer((props) => {
<div style={{ marginBottom: 10 }}> <div style={{ marginBottom: 10 }}>
<small>Nama : {item.name}</small> <br /> <small>Nama : {item.name}</small> <br />
<small>Npwp : {item.npwp}</small> <br /> <small>Npwp : {item.npwp}</small> <br />
<small>Address : {item.address}</small> <small>Alamat : {item.address}</small>
</div> </div>
<Space size="small"> <Space size="small">
<Button <Button
@ -333,7 +333,7 @@ export const PartnerComponent = observer((props) => {
: "Create a new partner" : "Create a new partner"
} }
okText={idData ? "Edit" : "Create"} okText={idData ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();
@ -450,7 +450,7 @@ export const PartnerComponent = observer((props) => {
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="address" name="address"
label="Address" label="Alamat"
rules={[ rules={[
idData idData
? { required: false } ? { required: false }

View File

@ -113,7 +113,7 @@ export const ProductComponent = observer((props) => {
), ),
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Button <Button
@ -157,12 +157,12 @@ export const ProductComponent = observer((props) => {
icon: <ExclamationCircleOutlined />, icon: <ExclamationCircleOutlined />,
okText: "Yes", okText: "Yes",
okType: "primary", okType: "primary",
cancelText: "Cancel", cancelText: "Batal",
onOk() { onOk() {
return deleteData(id); return deleteData(id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}; };
@ -350,8 +350,8 @@ export const ProductComponent = observer((props) => {
<div style={{}}> <div style={{}}>
<p> <p>
<small>{item.product_name}</small> <br /> <small>{item.product_name}</small> <br />
<small>Harga Beli : {item.current_price_price}</small> {/* <small>Harga Beli : {item.current_price_price}</small>
<br /> <br /> */}
<small>Harga Jual : {item.mark_up_price}</small> <small>Harga Jual : {item.mark_up_price}</small>
</p> </p>
<p></p> <p></p>
@ -388,7 +388,7 @@ export const ProductComponent = observer((props) => {
visible={store.product.visibleModalProduct} visible={store.product.visibleModalProduct}
title={idData ? "Edit Product" : "Create a new Product"} title={idData ? "Edit Product" : "Create a new Product"}
okText={idData ? "Edit" : "Create"} okText={idData ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -57,7 +57,7 @@ export const SubcategoryComponent = observer((props) => {
key: "categoryName", key: "categoryName",
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Space size="middle"> <Space size="middle">
@ -214,7 +214,7 @@ export const SubcategoryComponent = observer((props) => {
visible={store.subcategory.visibleModalSubcategory} visible={store.subcategory.visibleModalSubcategory}
title={idData ? "Edit Sub Category" : "Create a new sub category"} title={idData ? "Edit Sub Category" : "Create a new sub category"}
okText={idData ? "Edit" : "Create"} okText={idData ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -112,7 +112,7 @@ export const SupplierComponent = observer((props) => {
), ),
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
width: "20%", width: "20%",
render: (text, record) => ( render: (text, record) => (
@ -151,12 +151,12 @@ export const SupplierComponent = observer((props) => {
icon: <ExclamationCircleOutlined />, icon: <ExclamationCircleOutlined />,
okText: "Yes", okText: "Yes",
okType: "primary", okType: "primary",
cancelText: "Cancel", cancelText: "Batal",
onOk() { onOk() {
return deleteData(id); return deleteData(id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}; };
@ -342,7 +342,7 @@ export const SupplierComponent = observer((props) => {
visible={store.supplier.visibleModalSupplier} visible={store.supplier.visibleModalSupplier}
title={idData ? "Edit Supplier" : "Create a new Supplier"} title={idData ? "Edit Supplier" : "Create a new Supplier"}
okText={idData ? "Edit" : "Create"} okText={idData ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -34,7 +34,7 @@ export const TopupsaldoModal = observer((props) => {
visible={store.supplier.visibleModalTransaction} visible={store.supplier.visibleModalTransaction}
title="Top Up Saldo" title="Top Up Saldo"
okText="Top Up" okText="Top Up"
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancelTransaction(); handleCancelTransaction();
@ -66,7 +66,7 @@ export const TopupsaldoModal = observer((props) => {
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="amount" name="amount"
label="Amount" label="Nominal"
rules={[{ required: true, message: "Please input amount!" }]} rules={[{ required: true, message: "Please input amount!" }]}
> >
<InputNumber <InputNumber

View File

@ -2,6 +2,6 @@ export const PAYBACK_STATUS = {
0: 'Pending', 0: 'Pending',
1: 'Success', 1: 'Success',
2: 'Failed', 2: 'Failed',
3: 'Approved', 3: 'Disetujui',
4: 'Rejected', 4: 'Ditolak',
} }

View File

@ -154,7 +154,7 @@ export const DesktopLayout = observer(() => {
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined /> <UnorderedListOutlined />
<span>List Anggota</span> <span>Daftar Anggota</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="konfirmasi"> <Menu.Item key="konfirmasi">
@ -174,7 +174,7 @@ export const DesktopLayout = observer(() => {
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined /> <UnorderedListOutlined />
<span>List Anggota</span> <span>Daftar Anggota</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="konfirmasi"> <Menu.Item key="konfirmasi">

View File

@ -81,7 +81,7 @@ export const MenuList = observer((props) => {
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined /> <UnorderedListOutlined />
<span>List Anggota</span> <span>Daftar Anggota</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="konfirmasi"> <Menu.Item key="konfirmasi">
@ -101,7 +101,7 @@ export const MenuList = observer((props) => {
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined /> <UnorderedListOutlined />
<span>List Anggota</span> <span>Daftar Anggota</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="konfirmasi"> <Menu.Item key="konfirmasi">
@ -121,7 +121,7 @@ export const MenuList = observer((props) => {
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined /> <UnorderedListOutlined />
<span>List Anggota</span> <span>Daftar Anggota</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
</SubMenu> </SubMenu>

View File

@ -161,7 +161,7 @@ export const DetailUser = observer(() => {
}; };
const columns = [ const columns = [
{ {
title: "Amount", title: "Nominal",
dataIndex: "amount", dataIndex: "amount",
key: "amount", key: "amount",
render: (text) => render: (text) =>

View File

@ -113,7 +113,7 @@ export const Konfirmasi = observer(() => {
), ),
}, },
{ {
title: "Action", title: "Tindakan",
dataIndex: "amount", dataIndex: "amount",
key: "action", key: "action",
width: "10%", width: "10%",
@ -126,14 +126,14 @@ export const Konfirmasi = observer(() => {
title: `Are you sure Accept this submission?`, title: `Are you sure Accept this submission?`,
icon: <CheckOutlined />, icon: <CheckOutlined />,
okText: "Accept", okText: "Accept",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleApprove(record.id); handleApprove(record.id);
console.log(record.id); console.log(record.id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -152,13 +152,13 @@ export const Konfirmasi = observer(() => {
title: `Are you sure Reject this submission?`, title: `Are you sure Reject this submission?`,
icon: <StopOutlined />, icon: <StopOutlined />,
okText: "Reject", okText: "Reject",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleReject(record.id); handleReject(record.id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -315,13 +315,13 @@ export const Konfirmasi = observer(() => {
title: `Are you sure Accept this submission?`, title: `Are you sure Accept this submission?`,
icon: <CheckOutlined />, icon: <CheckOutlined />,
okText: "Accept", okText: "Accept",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleApprove(item.id); handleApprove(item.id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -340,13 +340,13 @@ export const Konfirmasi = observer(() => {
title: `Are you sure Reject this submission?`, title: `Are you sure Reject this submission?`,
icon: <StopOutlined />, icon: <StopOutlined />,
okText: "Reject", okText: "Reject",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleReject(item.id); handleReject(item.id);
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}

View File

@ -196,7 +196,7 @@ export const Membership = observer(() => {
}).format(text), }).format(text),
}, },
{ {
title: "Action", title: "Tindakan",
key: "action", key: "action",
render: (text, record) => ( render: (text, record) => (
<Space size="middle"> <Space size="middle">
@ -496,7 +496,7 @@ export const Membership = observer(() => {
visible={isVisibleTopUpModal} visible={isVisibleTopUpModal}
title="Top Up Saldo" title="Top Up Saldo"
okText="Top Up" okText="Top Up"
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancelTransaction(); handleCancelTransaction();
@ -517,7 +517,7 @@ export const Membership = observer(() => {
<Form form={form} layout="vertical"> <Form form={form} layout="vertical">
<Form.Item <Form.Item
name="amount" name="amount"
label="Amount" label="Nominal"
rules={[{ required: true, message: "Please input amount!" }]} rules={[{ required: true, message: "Please input amount!" }]}
> >
<InputNumber <InputNumber

View File

@ -195,7 +195,7 @@ export const MembershipModal = ({
: "Create a new Membership" : "Create a new Membership"
} }
okText={initialData.id ? "Edit" : "Create"} okText={initialData.id ? "Edit" : "Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
onCancel(); onCancel();

View File

@ -72,7 +72,7 @@ export const Payback = observer(() => {
key: "userData_name", key: "userData_name",
}, },
{ {
title: "Picture", title: "Gambar",
dataIndex: "image_prove", dataIndex: "image_prove",
key: "image_prove", key: "image_prove",
render: (text, record) => ( render: (text, record) => (
@ -84,7 +84,7 @@ export const Payback = observer(() => {
), ),
}, },
{ {
title: "Amount", title: "Nominal",
dataIndex: "amount", dataIndex: "amount",
key: "amount", key: "amount",
width: "20%", width: "20%",
@ -95,7 +95,7 @@ export const Payback = observer(() => {
}).format(text), }).format(text),
}, },
{ {
title: "Action", title: "Tindakan",
dataIndex: "amount", dataIndex: "amount",
key: "action", key: "action",
width: "10%", width: "10%",
@ -108,13 +108,13 @@ export const Payback = observer(() => {
title: `Are you sure Accept this submission?`, title: `Are you sure Accept this submission?`,
icon: <CheckOutlined />, icon: <CheckOutlined />,
okText: "Accept", okText: "Accept",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleAction(record.id, "accept"); handleAction(record.id, "accept");
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -133,13 +133,13 @@ export const Payback = observer(() => {
title: `Are you sure Reject this submission?`, title: `Are you sure Reject this submission?`,
icon: <StopOutlined />, icon: <StopOutlined />,
okText: "Reject", okText: "Reject",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleAction(record.id, "reject"); handleAction(record.id, "reject");
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -244,7 +244,7 @@ export const Payback = observer(() => {
modalLoader.setLoading(false); modalLoader.setLoading(false);
store.payback.visibleModalFilterPayback = false; store.payback.visibleModalFilterPayback = false;
}; };
const footerLayoutFilter = [ const footerLayoutFilter = [
<Button <Button
key={"remove"} key={"remove"}
@ -377,13 +377,13 @@ export const Payback = observer(() => {
title: `Are you sure Accept this submission?`, title: `Are you sure Accept this submission?`,
icon: <CheckOutlined />, icon: <CheckOutlined />,
okText: "Accept", okText: "Accept",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleAction(item.id, "accept"); handleAction(item.id, "accept");
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -402,13 +402,13 @@ export const Payback = observer(() => {
title: `Are you sure Reject this submission?`, title: `Are you sure Reject this submission?`,
icon: <StopOutlined />, icon: <StopOutlined />,
okText: "Reject", okText: "Reject",
cancelText: "Cancel", cancelText: "Batal",
okType: "primary", okType: "primary",
onOk() { onOk() {
handleAction(item.id, "reject"); handleAction(item.id, "reject");
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Batal");
}, },
}); });
}} }}
@ -478,7 +478,7 @@ export const Payback = observer(() => {
<Row> <Row>
<Col span={24}> <Col span={24}>
<Title level={5} type={"secondary"} strong> <Title level={5} type={"secondary"} strong>
Sender Pengirim
</Title> </Title>
<Form layout="vertical" name="filter" form={form}> <Form layout="vertical" name="filter" form={form}>
<Select <Select
@ -498,14 +498,14 @@ export const Payback = observer(() => {
</Select> </Select>
<Form.Item <Form.Item
name="start_date" name="start_date"
label="Dari" label="Dari Tanggal"
rules={[{ required: true, message: "Please input Date!" }]} rules={[{ required: true, message: "Please input Date!" }]}
> >
<DatePicker style={{ width: "100%" }}/> <DatePicker style={{ width: "100%" }}/>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="end_date" name="end_date"
label="Sampai" label="Sampai Tanggal"
rules={[{ required: true, message: "Please input Date!" }]} rules={[{ required: true, message: "Please input Date!" }]}
> >
<DatePicker style={{ width: "100%" }} /> <DatePicker style={{ width: "100%" }} />

View File

@ -56,7 +56,7 @@ export const PaybackCreated = observer(() => {
const columns = [ const columns = [
{ {
title: "Picture", title: "Gambar",
dataIndex: "image_prove", dataIndex: "image_prove",
key: "image_prove", key: "image_prove",
render: (text, record) => ( render: (text, record) => (
@ -68,7 +68,7 @@ export const PaybackCreated = observer(() => {
), ),
}, },
{ {
title: "Amount", title: "Nominal",
dataIndex: "amount", dataIndex: "amount",
key: "amount", key: "amount",
render: (text) => render: (text) =>
@ -103,8 +103,8 @@ export const PaybackCreated = observer(() => {
: record.status === 2 : record.status === 2
? "Failed" ? "Failed"
: record.status === 3 : record.status === 3
? "Approved" ? "Disetujui"
: "Rejected"} : "Ditolak"}
</Tag> </Tag>
), ),
}, },
@ -313,8 +313,8 @@ export const PaybackCreated = observer(() => {
: item.status === 2 : item.status === 2
? "Failed" ? "Failed"
: item.status === 3 : item.status === 3
? "Approved" ? "Disetujui"
: "Rejected"} : "Ditolak"}
</Tag> </Tag>
</div> </div>
</div> </div>

View File

@ -100,7 +100,7 @@ export const PaybackModal = ({ initialData }) => {
visible={store.payback.visibleModalPayback} visible={store.payback.visibleModalPayback}
title={"Create a new Created"} title={"Create a new Created"}
okText={"Create"} okText={"Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={handleCancel} onCancel={handleCancel}
onOk={() => { onOk={() => {
form form
@ -120,7 +120,7 @@ export const PaybackModal = ({ initialData }) => {
name="form_in_modal" name="form_in_modal"
initialValues={initialData} initialValues={initialData}
> >
<Form.Item label="Upload Picture" name="image_prove"> <Form.Item label="Upload Gambar" name="image_prove">
<div> <div>
<Upload <Upload
listType="picture-card" listType="picture-card"

View File

@ -250,7 +250,7 @@ export const Product = observer(() => {
visible={visibleModalUpload} visible={visibleModalUpload}
title={"Upload Excel Product"} title={"Upload Excel Product"}
okText={"Create"} okText={"Create"}
cancelText="Cancel" cancelText="Batal"
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
handleCancel(); handleCancel();

View File

@ -172,10 +172,10 @@ export const Profile = observer(() => {
} }
> >
{record.status === 1 {record.status === 1
? "Success" ? "Sukses"
: record.status === 0 : record.status === 0
? "Pending" ? "Dalam Proses"
: "Failed"} : "Gagal"}
</Tag> </Tag>
); );
}, },
@ -240,7 +240,7 @@ export const Profile = observer(() => {
<Col lg={12} xs={24}> <Col lg={12} xs={24}>
<Row> <Row>
<Col span={12}> <Col span={12}>
<Text strong>Name</Text> <Text strong>Nama</Text>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Text> <Text>
@ -248,7 +248,7 @@ export const Profile = observer(() => {
</Text> </Text>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Text strong>Phone Number</Text> <Text strong>No. Telepon</Text>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Text> <Text>
@ -268,7 +268,7 @@ export const Profile = observer(() => {
<Text>{store.authentication.profileData.roles?.name}</Text> <Text>{store.authentication.profileData.roles?.name}</Text>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Text strong>Superior</Text> <Text strong>Upline</Text>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Text> <Text>
@ -359,7 +359,7 @@ export const Profile = observer(() => {
<Col span={24}> <Col span={24}>
<div> <div>
<Title strong level={3}> <Title strong level={3}>
History Transaction Riwayat Transaksi
</Title> </Title>
<Button <Button
style={{ marginBottom: "1rem" }} style={{ marginBottom: "1rem" }}
@ -459,10 +459,10 @@ export const Profile = observer(() => {
} }
> >
{item.status === 1 {item.status === 1
? "Success" ? "Sukses"
: item.status === 0 : item.status === 0
? "Pending" ? "Dalam Proses"
: "Failed"} : "Gagal"}
</Tag> </Tag>
} }
</small>{" "} </small>{" "}

View File

@ -189,7 +189,7 @@ export const Product = observer(() => {
)} )}
<Modal <Modal
visible={visibleModalBuy} visible={visibleModalBuy}
title={`Are you sure buy ${barang?.product_name}?`} title={`Apakah anda yakin membeli ${barang?.product_name}?`}
okText={"Confirm"} okText={"Confirm"}
onCancel={() => { onCancel={() => {
form.resetFields(); form.resetFields();
@ -208,10 +208,10 @@ export const Product = observer(() => {
handleCancel(); handleCancel();
}} }}
> >
Cancel Batal
</Button>, </Button>,
<Button <Button
key="Buy Prod" key="Beli"
style={{ style={{
backgroundColor: "#4e79e7", backgroundColor: "#4e79e7",
color: "#fff", color: "#fff",
@ -229,10 +229,10 @@ export const Product = observer(() => {
}); });
}} }}
> >
Buy Prod Beli
</Button>, </Button>,
<Button <Button
key="Buy Stag" key="Beli Stag"
type="primary" type="primary"
onClick={() => { onClick={() => {
form form
@ -247,18 +247,18 @@ export const Product = observer(() => {
}); });
}} }}
> >
Buy Staging Beli Staging
</Button>, </Button>,
]} ]}
> >
<Form form={form} layout="vertical"> <Form form={form} layout="vertical">
<Form.Item <Form.Item
name="destination" name="destination"
label="Destination" label="Nomor Tujuan"
rules={[ rules={[
{ {
required: true, required: true,
message: "Please input Destination Number!", message: "Tolong masukan nomor tujuan!",
}, },
// { // {
// pattern: /^(?:\d*)$/, // pattern: /^(?:\d*)$/,