diff --git a/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx b/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx index 979ab44a8..7d55d4bce 100644 --- a/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx +++ b/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx @@ -34,6 +34,7 @@ import { type DocumentRequirement, } from "@ema-platform/api"; import { notifications } from "@mantine/notifications"; +import { PdfPreviewModal } from "@ema-platform/ui"; interface DocumentsTabProps { applicationId: string; @@ -441,8 +442,20 @@ export function DocumentsTab({ ); })} + setPreview(null)} + url={previewFile?.url ?? ""} + title={ + preview + ? localized(requirementByKey.get(preview.documentKey)?.name) || + preview.documentKey + : "" + } + /> + setPreview(null)} position="right" size="xl" @@ -458,16 +471,7 @@ export function DocumentsTab({ returnFocus > {previewFile?.url ? ( - isPdf ? ( -