Bug Fixing

This commit is contained in:
2022-01-25 09:59:57 +07:00
parent f6cc7ee359
commit 198063a7d9
12 changed files with 177 additions and 456 deletions

View File

@@ -93,24 +93,11 @@ export const Konfirmasi = observer(() => {
dataIndex: "image_prove",
key: "image_prove",
render: (text, record) => (
// <Image
// src={`${appConfig.apiUrl}/config/image/${text}`}
// style={{ width: "5vw" }}
// alt={record.id}
// />
<Button
onClick={async () => {
// await store.transaction.getDataHistoryTopUp(record.id);
// await store.transaction.getDetailHistoryTransaction(record.id);
// await store.authentication.getProfit(record.id);
//await store.transaction.getDataHistoryTransaction()
// history.push(LINKS.USER_DETAIL.replace(":id", record.id));
// console.log(record.id);
setToko(record);
setVisibleModalToko(true);
}}
// type="primary"
>
Lihat Foto
</Button>
@@ -272,42 +259,6 @@ export const Konfirmasi = observer(() => {
store.payback.visibleModalFilterPayback = false;
};
const handleFilterCategory = async (value) => {
if (value) {
store.product.filterCategory = value;
await store.product.getDataSubCategories();
} else {
store.product.filterCategory = null;
await store.product.getDataSubCategories();
}
};
const footerLayoutFilter = [
<Button
key={"remove"}
onClick={handleRemoveFilter}
style={{
backgroundColor: "#e74e5e",
color: "#fff",
}}
>
Remove Filter
</Button>,
<Button key={"cancel"} onClick={handleCancelFilter}>
Cancel
</Button>,
<Button
key={"submit"}
onClick={handleSubmitFilter}
style={{
backgroundColor: "#4e79e7",
color: "#fff",
}}
>
Apply
</Button>,
];
return (
<div className={["ppob-container"].join(" ")}>
<BreadcumbComponent
@@ -317,28 +268,6 @@ export const Konfirmasi = observer(() => {
/>
<Card>
<div style={{ marginTop: 30 }}>
{/* <Row style={{ marginBottom: 20 }}> */}
{/* <Col span={12}>
<Button
onClick={() => {
store.payback.visibleModalFilterPayback = true;
}}
>
<FilterOutlined />
Filter
</Button>
</Col> */}
{/* <Col span={12} style={{ textAlign: "right" }}> */}
{/* <Search
placeholder="input search text"
style={{
width: store.ui.mediaQuery.isMobile ? 160 : 200,
marginRight: store.ui.mediaQuery.isMobile ? 0 : 10,
marginBottom: store.ui.mediaQuery.isMobile ? 10 : 0,
}}
/> */}
{/* </Col> */}
{/* </Row> */}
{store.ui.mediaQuery.isDesktop && (
<Table
key="1"
@@ -400,7 +329,6 @@ export const Konfirmasi = observer(() => {
>
<List.Item.Meta
className={[""].join(" ")}
// title={item.username}
description={
<div style={{}}>
<p>
@@ -418,7 +346,6 @@ export const Konfirmasi = observer(() => {
okType: "primary",
onOk() {
handleApprove(item.id);
//console.log(record.id);
},
onCancel() {
console.log("Cancel");
@@ -473,20 +400,14 @@ export const Konfirmasi = observer(() => {
</Tag>
)}
<Button
style={
item.is_active === true
? {
marginTop: 5,
}
: { marginLeft: 10, marginTop: 5 }
}
style={
item.is_active === true
? {
marginTop: 5,
}
: { marginLeft: 10, marginTop: 5 }
}
onClick={async () => {
// await store.transaction.getDataHistoryTopUp(record.id);
// await store.transaction.getDetailHistoryTransaction(record.id);
// await store.authentication.getProfit(record.id);
//await store.transaction.getDataHistoryTransaction()
// history.push(LINKS.USER_DETAIL.replace(":id", record.id));
// console.log(record.id);
setIdentitas(item);
setVisibleModalIdentitas(true);
}}
@@ -497,9 +418,9 @@ export const Konfirmasi = observer(() => {
style={
item.is_active === true
? {
marginLeft:10,
marginLeft: 10,
}
: {marginTop: 10 }
: { marginTop: 10 }
}
onClick={async () => {
setToko(item);
@@ -512,19 +433,7 @@ export const Konfirmasi = observer(() => {
</div>
}
/>
<div style={{ marginRight: 16 }}>
{/* <p
style={{
fontSize: 9,
margin: 0,
}}
>
<Image
src={`${appConfig.apiUrl}/config/image/${item.image_prove}`}
style={{ width: "10vw" }}
/>
</p> */}
</div>
<div style={{ marginRight: 16 }}></div>
</List.Item>
<Divider plain style={{ margin: 0 }} />
</div>