diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-16 17:42:31 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-16 17:42:31 +0700 |
| commit | 0178a1f88d7d34824562e1413be073c0795a47cf (patch) | |
| tree | 20a26bd36d2c8e0c3e09681836eea9f403519f70 /src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx | |
| parent | 4711fff3bf3b07c50f353a7c5956055a37a5e4d2 (diff) | |
<iman> update code
Diffstat (limited to 'src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx')
| -rw-r--r-- | src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx b/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx index ca571167..a6f25d5e 100644 --- a/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx +++ b/src/lib/pengajuan-tempo/component/KonfirmasiDokumen.jsx @@ -32,7 +32,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { setFormat(`application/${format}`); } else if (format == undefined) { setFormat(null); - setUrl(`http://192.168.23.244:8069` + base64); + setUrl(`${process.env.NEXT_PUBLIC_ODOO_API_HOST}` + base64); } else { setFormat(`image/${format}`); } @@ -1562,7 +1562,7 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { close={() => setIsExample(false)} > <div className='flex justify-center items-center p-2'> - <iframe + {/* <iframe src={`${ format == null ? url : `data:${format};base64,${base64}` }`} @@ -1571,7 +1571,14 @@ const KonfirmasiDokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { width='800px' height='600px' title='Document' - ></iframe> + ></iframe> */} + <embed + src={`${ + format == null ? url : `data:${format};base64,${base64}` + }`} + width='100%' + height='600px' + /> </div> </BottomPopup> )} |
