This commit is contained in:
zadit biasa aja
2025-07-01 01:19:29 +00:00
parent 338be17938
commit 8192c014a0
2 changed files with 37 additions and 38 deletions

View File

@@ -581,6 +581,8 @@ const CameraCanvas = () => {
<style>{spinnerStyle}</style> <style>{spinnerStyle}</style>
</div> </div>
) : ( ) : (
capturedImage &&
!fileTemp && (
<div> <div>
<h3 style={{ marginTop: 0 }}> <h3 style={{ marginTop: 0 }}>
KTP {!KTPdetected && "Tidak"} Terdeteksi KTP {!KTPdetected && "Tidak"} Terdeteksi
@@ -607,6 +609,7 @@ const CameraCanvas = () => {
Hapus Hapus
</h4> </h4>
</div> </div>
)
)} )}
{fileTemp && <PaginatedFormEditable data={fileTemp} />} {fileTemp && <PaginatedFormEditable data={fileTemp} />}
</div> </div>

View File

@@ -36,20 +36,16 @@ const PaginatedFormEditable = ({ data }) => {
const currentFields = fields.slice(startIndex, startIndex + fieldsPerPage); const currentFields = fields.slice(startIndex, startIndex + fieldsPerPage);
return ( return (
<div <div>
{currentFields.map((key) => (
<div key={key} style={{ marginBottom: 10, textAlign: "left" }}>
<label
style={{ style={{
maxWidth: 400, fontWeight: "bold",
margin: "auto", textTransform: "capitalize",
padding: 20, textAlign: "left",
border: "1px solid #ccc",
borderRadius: 10,
}} }}
> >
<h3>Edit Form Data</h3>
{currentFields.map((key) => (
<div key={key} style={{ marginBottom: 10 }}>
<label style={{ fontWeight: "bold", textTransform: "capitalize" }}>
{key} {key}
</label> </label>
<input <input