diff --git a/apps/cm/src/pages/dashboard/ui/banner-list.tsx b/apps/cm/src/pages/dashboard/ui/banner-list.tsx index 2bfaba565..d6c3ef040 100644 --- a/apps/cm/src/pages/dashboard/ui/banner-list.tsx +++ b/apps/cm/src/pages/dashboard/ui/banner-list.tsx @@ -2,7 +2,6 @@ import { useRef } from "react"; import { useQuery } from "@tanstack/react-query"; -import Autoplay from "embla-carousel-autoplay"; import { ENDPOINT } from "@/shared/config"; import { getImageUrlByAtflCd, getBannerList } from "../api/banner"; import { getCookie } from "@/shared/lib"; @@ -13,6 +12,7 @@ import { CarouselItem, CarouselNext, CarouselPrevious, + Autoplay, } from "@common/components"; diff --git a/packages/common/components/src/ui/carousel/index.tsx b/packages/common/components/src/ui/carousel/index.tsx index 862e3f440..059b6a506 100644 --- a/packages/common/components/src/ui/carousel/index.tsx +++ b/packages/common/components/src/ui/carousel/index.tsx @@ -4,6 +4,7 @@ import * as React from "react"; import useEmblaCarousel, { type UseEmblaCarouselType, } from "embla-carousel-react"; +import Autoplay from "embla-carousel-autoplay"; import { ArrowLeft, ArrowRight } from "lucide-react"; import { cn } from "../../lib/utils"; @@ -258,4 +259,5 @@ export { CarouselItem, CarouselNext, CarouselPrevious, + Autoplay, };