From 16370f58b64890669c55e8df24a4ec3566a22833 Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Wed, 4 Sep 2024 10:22:21 +0200 Subject: [PATCH] refactor(SW-337): fixes for lightbox --- components/Lightbox/FullView.tsx | 9 ++---- components/Lightbox/Gallery.tsx | 12 ++++++-- components/Lightbox/Lightbox.module.css | 38 +++++++++++++++++++------ components/Lightbox/index.tsx | 4 ++- 4 files changed, 44 insertions(+), 19 deletions(-) diff --git a/components/Lightbox/FullView.tsx b/components/Lightbox/FullView.tsx index 242627144..983269463 100644 --- a/components/Lightbox/FullView.tsx +++ b/components/Lightbox/FullView.tsx @@ -1,8 +1,8 @@ "use client" import { AnimatePresence, motion } from "framer-motion" -import { ChevronRightIcon } from "@/components/Icons" import ArrowRightIcon from "@/components/Icons/ArrowRight" +import CloseIcon from "@/components/Icons/Close" import Image from "@/components/Image" import Button from "@/components/TempDesignSystem/Button" import Body from "@/components/TempDesignSystem/Text/Body" @@ -28,12 +28,7 @@ export default function FullView({ className={styles.fullViewCloseButton} onClick={onClose} > - +
diff --git a/components/Lightbox/Gallery.tsx b/components/Lightbox/Gallery.tsx index a875ddea4..cb5181d39 100644 --- a/components/Lightbox/Gallery.tsx +++ b/components/Lightbox/Gallery.tsx @@ -123,7 +123,12 @@ export default function Gallery({ {/* Mobile Gallery */}
-