From 1dac5987551b21a296d24a9efe8b56a459a4d689 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:35:56 +1000 Subject: [PATCH] Remove console.log. Remove vestigial property (#5217) --- ui/v2.5/src/components/Galleries/GalleryCard.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/v2.5/src/components/Galleries/GalleryCard.tsx b/ui/v2.5/src/components/Galleries/GalleryCard.tsx index 130f6ffd5..01b21bcc7 100644 --- a/ui/v2.5/src/components/Galleries/GalleryCard.tsx +++ b/ui/v2.5/src/components/Galleries/GalleryCard.tsx @@ -18,15 +18,13 @@ import { GalleryPreviewScrubber } from "./GalleryPreviewScrubber"; import cx from "classnames"; import { useHistory } from "react-router-dom"; -interface IScenePreviewProps { - isPortrait?: boolean; +interface IGalleryPreviewProps { gallery: GQL.SlimGalleryDataFragment; onScrubberClick?: (index: number) => void; } -export const GalleryPreview: React.FC = ({ +export const GalleryPreview: React.FC = ({ gallery, - isPortrait = false, onScrubberClick, }) => { const [imgSrc, setImgSrc] = useState( @@ -34,7 +32,7 @@ export const GalleryPreview: React.FC = ({ ); return ( -
+
{!!imgSrc && ( = (props) => { { - console.log(i); history.push(`/galleries/${props.gallery.id}/images/${i}`); }} />