mirror of
https://github.com/stashapp/stash.git
synced 2025-12-07 08:54:10 +01:00
Remove console.log. Remove vestigial property (#5217)
This commit is contained in:
parent
ad442fbee5
commit
1dac598755
1 changed files with 3 additions and 6 deletions
|
|
@ -18,15 +18,13 @@ import { GalleryPreviewScrubber } from "./GalleryPreviewScrubber";
|
||||||
import cx from "classnames";
|
import cx from "classnames";
|
||||||
import { useHistory } from "react-router-dom";
|
import { useHistory } from "react-router-dom";
|
||||||
|
|
||||||
interface IScenePreviewProps {
|
interface IGalleryPreviewProps {
|
||||||
isPortrait?: boolean;
|
|
||||||
gallery: GQL.SlimGalleryDataFragment;
|
gallery: GQL.SlimGalleryDataFragment;
|
||||||
onScrubberClick?: (index: number) => void;
|
onScrubberClick?: (index: number) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GalleryPreview: React.FC<IScenePreviewProps> = ({
|
export const GalleryPreview: React.FC<IGalleryPreviewProps> = ({
|
||||||
gallery,
|
gallery,
|
||||||
isPortrait = false,
|
|
||||||
onScrubberClick,
|
onScrubberClick,
|
||||||
}) => {
|
}) => {
|
||||||
const [imgSrc, setImgSrc] = useState<string | undefined>(
|
const [imgSrc, setImgSrc] = useState<string | undefined>(
|
||||||
|
|
@ -34,7 +32,7 @@ export const GalleryPreview: React.FC<IScenePreviewProps> = ({
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cx("gallery-card-cover", { portrait: isPortrait })}>
|
<div className={cx("gallery-card-cover")}>
|
||||||
{!!imgSrc && (
|
{!!imgSrc && (
|
||||||
<img
|
<img
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
|
@ -212,7 +210,6 @@ export const GalleryCard: React.FC<IProps> = (props) => {
|
||||||
<GalleryPreview
|
<GalleryPreview
|
||||||
gallery={props.gallery}
|
gallery={props.gallery}
|
||||||
onScrubberClick={(i) => {
|
onScrubberClick={(i) => {
|
||||||
console.log(i);
|
|
||||||
history.push(`/galleries/${props.gallery.id}/images/${i}`);
|
history.push(`/galleries/${props.gallery.id}/images/${i}`);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue