File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { useEffect , useState , useRef } from 'react' ;
3+ import { useEffect , useState , useRef } from 'react' ;
44import { cn } from '@/lib/utils' ;
55import Autoplay from 'embla-carousel-autoplay' ;
66import {
@@ -27,8 +27,9 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
2727 const [ count , setCount ] = useState ( 0 ) ;
2828
2929 // State to hold the featured sponsor
30- const [ featuredSponsor , setfeaturedSponsor ] =
31- useState < SponsorshipProps > ( sponsors [ 0 ] ) ;
30+ const [ featuredSponsor , setfeaturedSponsor ] = useState < SponsorshipProps > (
31+ sponsors [ 0 ]
32+ ) ;
3233
3334 useEffect ( ( ) => {
3435 if ( ! api ) {
@@ -47,9 +48,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
4748 } ) ;
4849 } , [ api ] ) ;
4950
50- const plugin = useRef (
51- Autoplay ( { delay : 5000 , stopOnInteraction : true } )
52- ) ;
51+ const plugin = useRef ( Autoplay ( { delay : 5000 , stopOnInteraction : true } ) ) ;
5352
5453 const autoPlayInteraction = ( ) => {
5554 plugin . current . stop ( ) ;
You can’t perform that action at this time.
0 commit comments