Perbaikan PPOB

This commit is contained in:
2022-01-11 14:33:09 +07:00
parent b24ea23e3d
commit a9d0d199d1
15 changed files with 344 additions and 107 deletions

View File

@@ -367,12 +367,10 @@ export const Payback = observer(() => {
>
<List.Item.Meta
className={["cariparkir-container"].join(" ")}
title={item.name}
title={item.userData_name}
description={
<div style={{}}>
<p>
<span>{item.userData_name}</span>
<br />
<small>Amount: {item.amount}</small>
<br />
{PAYBACK_STATUS[item.status] ===

View File

@@ -274,9 +274,9 @@ export const PaybackCreated = observer(() => {
itemLayout="horizontal"
position={"top"}
pagination={{
onChange: async (page) => {
store.payback.pageSizeCreated = page.pageSize;
store.payback.pageCreated = page.current - 1;
onChange: async (page, pageSize) => {
store.payback.pageSizeCreated = pageSize;
store.payback.pageCreated = page - 1;
modalLoader.setLoading(true);
await store.payback.getDataCreated();
modalLoader.setLoading(false);
@@ -308,7 +308,7 @@ export const PaybackCreated = observer(() => {
title={item.name}
description={
<div style={{}}>
<Image src={item.image_prove} preview={false} />
<small>Amount: {item.amount}</small>
</div>
}
/>
@@ -319,7 +319,12 @@ export const PaybackCreated = observer(() => {
margin: 0,
}}
>
{item.amount}
{" "}
<Image
src={`${appConfig.apiUrl}/config/image/${item.image_prove}`}
style={{ width: "20vw" }}
preview={true}
/>
</p>
</div>
</List.Item>