From e54255ac50595c0d0c993bd2278ef486d2517778 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 01:56:44 +0000 Subject: [PATCH] Fix: Remove duplicate close button --- src/components/moderation/PhotoModal.tsx | 30 ++++++++---------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/src/components/moderation/PhotoModal.tsx b/src/components/moderation/PhotoModal.tsx index 263b3812..34cb89d1 100644 --- a/src/components/moderation/PhotoModal.tsx +++ b/src/components/moderation/PhotoModal.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { X, ChevronLeft, ChevronRight } from 'lucide-react'; +import { ChevronLeft, ChevronRight } from 'lucide-react'; import { Dialog, DialogContent } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; @@ -39,25 +39,15 @@ export function PhotoModal({ photos, initialIndex, isOpen, onClose }: PhotoModal
{/* Header */}
-
-
-

- {currentPhoto?.filename || `Photo ${currentIndex + 1}`} -

- {photos.length > 1 && ( -

- {currentIndex + 1} of {photos.length} -

- )} -
- +
+

+ {currentPhoto?.filename || `Photo ${currentIndex + 1}`} +

+ {photos.length > 1 && ( +

+ {currentIndex + 1} of {photos.length} +

+ )}