Bug Fixing
This commit is contained in:
@@ -84,7 +84,7 @@ export const Profile = observer(() => {
|
||||
)
|
||||
: await store.transaction.getDataHistoryTransaction();
|
||||
store.transaction.visibleModalFilterTransaction = false;
|
||||
setAction(false)
|
||||
setAction(false);
|
||||
};
|
||||
|
||||
const handleCancelFilter = async () => {
|
||||
@@ -97,18 +97,18 @@ export const Profile = observer(() => {
|
||||
store.authentication.profileData?.id
|
||||
)
|
||||
: await store.transaction.getDataHistoryTransaction();
|
||||
setAction(false)
|
||||
setAction(false);
|
||||
//await store.transaction.getDataHistoryTransaction();
|
||||
};
|
||||
|
||||
const handleSubmitFilter = async () => {
|
||||
const data = form.getFieldsValue();
|
||||
const awal = (store.transaction.filterStart = moment(
|
||||
data.start_date
|
||||
).format("YYYY-MM-DD HH:mm:ss"));
|
||||
const akhir = (store.transaction.filterEnd = moment(data.end_date).format(
|
||||
store.transaction.filterStart = moment(data.start_date).format(
|
||||
"YYYY-MM-DD HH:mm:ss"
|
||||
));
|
||||
);
|
||||
store.transaction.filterEnd = moment(data.end_date).format(
|
||||
"YYYY-MM-DD HH:mm:ss"
|
||||
);
|
||||
modalLoader.setLoading(true);
|
||||
actionFilter === true
|
||||
? await store.transaction.getDataHistoryTopUpProfile(
|
||||
@@ -120,7 +120,7 @@ export const Profile = observer(() => {
|
||||
store.transaction.filterEnd = null;
|
||||
//form.resetFields();
|
||||
store.transaction.visibleModalFilterTransaction = false;
|
||||
setAction(false)
|
||||
setAction(false);
|
||||
};
|
||||
|
||||
const footerLayoutFilter = [
|
||||
@@ -132,10 +132,10 @@ export const Profile = observer(() => {
|
||||
color: "#fff",
|
||||
}}
|
||||
>
|
||||
Remove Filter
|
||||
Hapus Filter
|
||||
</Button>,
|
||||
<Button key={"cancel"} onClick={handleCancelFilter}>
|
||||
Cancel
|
||||
Batal
|
||||
</Button>,
|
||||
<Button
|
||||
key={"submit"}
|
||||
@@ -145,17 +145,17 @@ export const Profile = observer(() => {
|
||||
color: "#fff",
|
||||
}}
|
||||
>
|
||||
Apply
|
||||
Terapkan
|
||||
</Button>,
|
||||
];
|
||||
const columns = [
|
||||
{
|
||||
title: "Name Produk",
|
||||
title: "Nama Produk",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
},
|
||||
{
|
||||
title: "Price",
|
||||
title: "Harga",
|
||||
dataIndex: "price",
|
||||
key: "price",
|
||||
render: (text) =>
|
||||
@@ -251,7 +251,7 @@ export const Profile = observer(() => {
|
||||
}).format(text),
|
||||
},
|
||||
{
|
||||
title: "Transaction Date",
|
||||
title: "Tanggal Transaksi",
|
||||
dataIndex: "transaction_date",
|
||||
key: "transaction_date",
|
||||
render: (text, record) => {
|
||||
@@ -314,12 +314,12 @@ export const Profile = observer(() => {
|
||||
<Col span={12}>
|
||||
<Text>{store.authentication.profileData?.username}</Text>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
{/* <Col span={12}>
|
||||
<Text strong>Role</Text>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Text>{store.authentication.profileData.roles?.name}</Text>
|
||||
</Col>
|
||||
</Col> */}
|
||||
<Col span={12}>
|
||||
<Text strong>Upline</Text>
|
||||
</Col>
|
||||
@@ -411,7 +411,7 @@ export const Profile = observer(() => {
|
||||
<Row>
|
||||
<Col span={24}>
|
||||
<Tabs defaultActiveKey="1">
|
||||
<TabPane tab="History Top Up" key="1">
|
||||
<TabPane tab="Riwayat Top Up" key="1">
|
||||
<Button
|
||||
style={{ marginBottom: "1rem", marginLeft: 5 }}
|
||||
onClick={() => {
|
||||
@@ -526,7 +526,7 @@ export const Profile = observer(() => {
|
||||
</div>
|
||||
)}
|
||||
</TabPane>
|
||||
<TabPane tab="History Transaction" key="2">
|
||||
<TabPane tab="Riwayat Transaksi" key="2">
|
||||
<Button
|
||||
style={{ marginBottom: "1rem", marginLeft: 5 }}
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user