mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +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 { useHistory } from "react-router-dom";
|
||||
|
||||
interface IScenePreviewProps {
|
||||
isPortrait?: boolean;
|
||||
interface IGalleryPreviewProps {
|
||||
gallery: GQL.SlimGalleryDataFragment;
|
||||
onScrubberClick?: (index: number) => void;
|
||||
}
|
||||
|
||||
export const GalleryPreview: React.FC<IScenePreviewProps> = ({
|
||||
export const GalleryPreview: React.FC<IGalleryPreviewProps> = ({
|
||||
gallery,
|
||||
isPortrait = false,
|
||||
onScrubberClick,
|
||||
}) => {
|
||||
const [imgSrc, setImgSrc] = useState<string | undefined>(
|
||||
|
|
@ -34,7 +32,7 @@ export const GalleryPreview: React.FC<IScenePreviewProps> = ({
|
|||
);
|
||||
|
||||
return (
|
||||
<div className={cx("gallery-card-cover", { portrait: isPortrait })}>
|
||||
<div className={cx("gallery-card-cover")}>
|
||||
{!!imgSrc && (
|
||||
<img
|
||||
loading="lazy"
|
||||
|
|
@ -212,7 +210,6 @@ export const GalleryCard: React.FC<IProps> = (props) => {
|
|||
<GalleryPreview
|
||||
gallery={props.gallery}
|
||||
onScrubberClick={(i) => {
|
||||
console.log(i);
|
||||
history.push(`/galleries/${props.gallery.id}/images/${i}`);
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue