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}`); }} />