📊 Grafik performa akan ditampilkan di sini
diff --git a/src/FileListComponent.js b/src/FileListComponent.js
index dfebe2b..0543935 100644
--- a/src/FileListComponent.js
+++ b/src/FileListComponent.js
@@ -65,6 +65,11 @@ const FileListComponent = () => {
return;
}
+ // Validasi URL gambar (opsional)
+ if (data.foto_url && !data.foto_url.match(/\.(jpg|jpeg|png)$/i)) {
+ console.warn("URL foto bukan format gambar yang didukung.");
+ }
+
setSelectedFile(data);
} catch (error) {
console.error("Gagal mengambil detail:", error.message || error);
@@ -90,7 +95,7 @@ const FileListComponent = () => {
return (
-
📁 Daftar File
+ 📁 Daftar Anggota
{files.length} file tersedia
@@ -146,6 +151,22 @@ const FileListComponent = () => {
className={styles.modalContent}
onClick={(e) => e.stopPropagation()}
>
+ {/* Foto KTP */}
+ {selectedFile.foto_url && (
+

+ )}
+
🪪 Detail Data KTP
diff --git a/src/FileListComponent.module.css b/src/FileListComponent.module.css
index 5415ee8..f54da0f 100644
--- a/src/FileListComponent.module.css
+++ b/src/FileListComponent.module.css
@@ -263,6 +263,7 @@
border-collapse: collapse;
margin-bottom: 1.5rem;
font-size: 0.875rem;
+ text-align: left;
}
.detailTable tr:nth-child(even) {
@@ -469,8 +470,6 @@
.closeButton {
padding: 0.875rem 2rem;
- width: auto;
- margin-left: auto;
display: block;
}
}
diff --git a/src/Login.js b/src/Login.js
index c948aa2..71742c3 100644
--- a/src/Login.js
+++ b/src/Login.js
@@ -49,7 +49,7 @@ const Login = () => {

-
KTP Scanner login
+
Kawal PSI
Silakan masuk untuk melanjutkan ke dashboard