Skip to content

Commit d60b586

Browse files
committed
format: npm run format
1 parent c9255e0 commit d60b586

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

app/(home)/components/SponsorsDesktop.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useEffect, useState, useRef} from 'react';
3+
import { useEffect, useState, useRef } from 'react';
44
import { cn } from '@/lib/utils';
55
import Autoplay from 'embla-carousel-autoplay';
66
import {
@@ -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();

0 commit comments

Comments
 (0)