feat(admin): add document preview functionality to adult verification

- Implemented a preview section for adult verification documents, allowing users to view images and PDFs inline.
- Added localization support for preview titles and messages in German, English, and Spanish.
- Enhanced the component's state management to handle preview visibility and cleanup.
This commit is contained in:
Torsten Schulz (local)
2026-03-27 10:50:28 +01:00
parent 0dd2bce5d1
commit 26eb7b8ce7
4 changed files with 87 additions and 6 deletions

View File

@@ -42,6 +42,9 @@
"reject": "Ablehnen",
"resetPending": "Auf Prüfung setzen",
"openDocument": "Dokument ansehen",
"previewTitle": "Nachweis-Vorschau",
"closePreview": "Vorschau schließen",
"previewUnavailable": "Für diesen Dateityp ist hier keine Vorschau verfügbar.",
"empty": "Keine passenden Anfragen gefunden.",
"loadError": "Die Freigaben konnten nicht geladen werden.",
"updateError": "Der Status konnte nicht geändert werden.",

View File

@@ -42,6 +42,9 @@
"reject": "Reject",
"resetPending": "Set pending",
"openDocument": "Open document",
"previewTitle": "Proof preview",
"closePreview": "Close preview",
"previewUnavailable": "No inline preview is available for this file type.",
"empty": "No matching requests found.",
"loadError": "Could not load approvals.",
"updateError": "Could not update the status.",

View File

@@ -42,6 +42,9 @@
"reject": "Rechazar",
"resetPending": "Poner en revisión",
"openDocument": "Abrir documento",
"previewTitle": "Vista previa de la prueba",
"closePreview": "Cerrar vista previa",
"previewUnavailable": "No hay vista previa integrada para este tipo de archivo.",
"empty": "No se han encontrado solicitudes.",
"loadError": "No se pudieron cargar las aprobaciones.",
"updateError": "No se pudo actualizar el estado.",