Perbaikan Page Konfirmasi

This commit is contained in:
2022-01-26 18:18:12 +07:00
parent fd950e270b
commit e2205aa260
3 changed files with 22 additions and 25 deletions

View File

@@ -90,18 +90,19 @@ export const Konfirmasi = observer(() => {
},
{
title: "Foto Toko",
dataIndex: "image_prove",
key: "image_prove",
render: (text, record) => (
<Button
onClick={async () => {
setToko(record);
setVisibleModalToko(true);
}}
>
Lihat Foto
</Button>
),
render: (text, record) =>
record.user_detail?.image_store !== "\"\"" ? (
<Button
onClick={async () => {
setToko(record);
setVisibleModalToko(true);
}}
>
Lihat Foto
</Button>
) : (
""
),
},
{
title: "Action",
@@ -173,7 +174,6 @@ export const Konfirmasi = observer(() => {
),
},
];
if (store.authentication.userData.role === "Retail") columns.pop();
const routeData = [
{