1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

bump swiperjs, fix types

This commit is contained in:
Fedor Katurov 2025-02-12 18:01:21 +07:00
parent 16689ae3a6
commit 4eb605a398
4 changed files with 9 additions and 7 deletions

View file

@ -41,7 +41,7 @@
"react-sticky-box": "^1.0.2", "react-sticky-box": "^1.0.2",
"sass": "^1.49.0", "sass": "^1.49.0",
"sharp": "^0.32.6", "sharp": "^0.32.6",
"swiper": "^11.0.3", "swiper": "^11.2.2",
"swr": "^1.0.1", "swr": "^1.0.1",
"throttle-debounce": "^2.1.0", "throttle-debounce": "^2.1.0",
"typescript": "^4.0.5", "typescript": "^4.0.5",

View file

@ -31,7 +31,7 @@ const Columns: FC<ColumnsProps> = ({
if (!childs) return; if (!childs) return;
const timeout = setTimeout(() => setColumns([...childs]), 150); const timeout = setTimeout(() => setColumns([...childs.values()]), 150);
return () => clearTimeout(timeout); return () => clearTimeout(timeout);
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps

View file

@ -57,7 +57,9 @@ const NodeImageSwiperBlock: FC<Props> = observer(({ node }) => {
useEffect(() => { useEffect(() => {
controlledSwiper?.slideTo(0, 0); controlledSwiper?.slideTo(0, 0);
return () => controlledSwiper?.slideTo(0, 0); return () => {
controlledSwiper?.slideTo(0, 0);
};
}, [controlledSwiper, images, node.id]); }, [controlledSwiper, images, node.id]);
useEffect(() => { useEffect(() => {

View file

@ -3102,10 +3102,10 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
swiper@^11.0.3: swiper@^11.2.2:
version "11.0.3" version "11.2.2"
resolved "https://registry.yarnpkg.com/swiper/-/swiper-11.0.3.tgz#9c325154db2a4431f508b7e8e300621365eb4c3d" resolved "https://registry.yarnpkg.com/swiper/-/swiper-11.2.2.tgz#b49089fad99501e34cb1be916e1ae05379aace9a"
integrity sha512-MyV9ooQsriAe2EibeamqewLjgCfSvl2xoyratl6S3ln5BXDL4BzlO6mxcbLMCzQL6Z60b/u0AS/nKrepL0+TAg== integrity sha512-FmAN6zACpVUbd/1prO9xQ9gKo9cc6RE2UKU/z4oXtS8fNyX4sdOW/HHT/e444WucLJs0jeMId6WjdWM2Lrs8zA==
swr@^1.0.1: swr@^1.0.1:
version "1.2.0" version "1.2.0"