From 49564d4d0a0549c4b30711c4f0b56d5e77a071e3 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Thu, 20 Nov 2025 10:03:08 +0100 Subject: [PATCH] feat(dashboard): add preview button to submission details --- web/src/components/submission-details.tsx | 78 +++++++++++++---------- 1 file changed, 43 insertions(+), 35 deletions(-) diff --git a/web/src/components/submission-details.tsx b/web/src/components/submission-details.tsx index 7c1cdabe..50be0db8 100644 --- a/web/src/components/submission-details.tsx +++ b/web/src/components/submission-details.tsx @@ -1,6 +1,6 @@ "use client" -import { Calendar, Check, Download, ExternalLink, FileType, FolderOpen, Palette, Tag, User as UserIcon, X } from "lucide-react" +import { Calendar, Check, Download, ExternalLink, FileType, FolderOpen, Palette, Tag, User as UserIcon, X, Eye } from "lucide-react" import Image from "next/image" import Link from "next/link" import { IconCard } from "@/components/icon-card" @@ -193,40 +193,48 @@ export function SubmissionDetails({ Submission Details - {(onApprove || onReject) && ( -
- {onApprove && ( - - )} - {onReject && ( - - )} -
- )} +
+ + {(onApprove || onReject) && ( + <> + {onApprove && ( + + )} + {onReject && ( + + )} + + )} +