diff --git a/.yarn/cache/@next-swc-linux-x64-gnu-npm-12.1.6-28626beade-9.zip b/.yarn/cache/@next-swc-darwin-arm64-npm-12.1.6-5df30a2b11-9.zip similarity index 57% rename from .yarn/cache/@next-swc-linux-x64-gnu-npm-12.1.6-28626beade-9.zip rename to .yarn/cache/@next-swc-darwin-arm64-npm-12.1.6-5df30a2b11-9.zip index e79af86ac..0ed87b574 100644 Binary files a/.yarn/cache/@next-swc-linux-x64-gnu-npm-12.1.6-28626beade-9.zip and b/.yarn/cache/@next-swc-darwin-arm64-npm-12.1.6-5df30a2b11-9.zip differ diff --git a/.yarn/cache/fsevents-patch-19706e7e35-9.zip b/.yarn/cache/fsevents-patch-19706e7e35-9.zip new file mode 100644 index 000000000..1d6d66e66 Binary files /dev/null and b/.yarn/cache/fsevents-patch-19706e7e35-9.zip differ diff --git a/ui-parts/swiper/src/swiper-instance-exporter.component.ts b/ui-parts/swiper/src/swiper-instance-exporter.component.ts index fc6e3ccd6..eccf790bc 100644 --- a/ui-parts/swiper/src/swiper-instance-exporter.component.ts +++ b/ui-parts/swiper/src/swiper-instance-exporter.component.ts @@ -1,11 +1,9 @@ import { useSwiper } from 'swiper/react' -const SwiperInstanceExporter = ({ swiper, setSwiper }) => { +export const SwiperInstanceExporter = ({ swiper, setSwiper }) => { const swiperInstance = useSwiper() if (!swiper) setSwiper(swiperInstance) return null } - -export { SwiperInstanceExporter } diff --git a/ui-parts/swiper/src/swiper.tsx b/ui-parts/swiper/src/swiper.tsx index 145422b78..90f3c2188 100644 --- a/ui-parts/swiper/src/swiper.tsx +++ b/ui-parts/swiper/src/swiper.tsx @@ -1,16 +1,15 @@ import { injectGlobal } from '@emotion/css' - +import { nanoid } from 'nanoid' import React from 'react' import { FC } from 'react' +import { useMemo } from 'react' import { Swiper as BaseSwiper } from 'swiper/react' import { SwiperProps } from 'swiper/react' -import { nanoid } from 'nanoid' -import { useMemo } from 'react' -import { STYLES } from './swiper.styles' +import { STYLES } from './swiper.styles' let wasGloballyInjected = false -const injectedClasses: Array = [] +const injectedClasses: string[] = [] const Swiper: FC = ({ width, className, ...props }) => { // eslint-disable-next-line