mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:29:45 +00:00
фикс билда
This commit is contained in:
1 parent
6f6e122a71
commit
eb3236b7a4
11 files changed
+25
-15
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useMedia } from "@/modules/media/hooks/useMedia";
|
||||
|
||||
import "./PhotoGallery.style.scss"
|
||||
@@ -8,9 +8,9 @@ interface PhotoGalleryProps {
|
||||
category?: string;
|
||||
}
|
||||
|
||||
const PhotoGallery = ({ images, category = "галерея" }: PhotoGalleryProps) => {
|
||||
const PhotoGallery = ({ images }: PhotoGalleryProps) => {
|
||||
const { data: mediaData, isLoading, isError } = useMedia();
|
||||
const [visibleCount, setVisibleCount] = useState(10);
|
||||
const [visibleCount] = useState(10);
|
||||
|
||||
const filteredMedia = images
|
||||
? images.map((src, id) => ({ id, src }))
|
||||
|
||||
Reference in new issue
Block a user