File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,9 @@ export function ScrollCarousel({
8282 const scrollByItem = useCallback (
8383 ( direction : - 1 | 1 ) => {
8484 const container = scrollRef . current ;
85- const carouselItems =
86- container ?. querySelectorAll < HTMLElement > ( "[data-carousel-item]" ) ;
85+ const carouselItems = container ?. querySelectorAll < HTMLElement > (
86+ "[data-carousel-item]" ,
87+ ) ;
8788
8889 if ( ! container || ! carouselItems ?. length ) {
8990 return ;
@@ -169,19 +170,13 @@ export function ScrollCarousel({
169170 < div className = { cn ( "grid grid-flow-col gap-4" , gridClassName ) } >
170171 { items . map ( ( item , index ) => (
171172 < div
172- key = { isValidElement ( item ) && item . key != null ? item . key : index }
173+ key = {
174+ isValidElement ( item ) && item . key != null ? item . key : index
175+ }
173176 data-carousel-item
174177 className = { cn ( "min-w-0 snap-start" , itemClassName ) }
175178 >
176- < < << << < HEAD :apps / site / src / components / enterprise / scroll-carousel . tsx
177- < CarouselItem
178- card = { item }
179- className = "min-h-full"
180- color = { color }
181- />
182- =======
183179 { item }
184- >>> >>> > 63 de57b4 ( feat ( site ) : showcase refinement ) :apps / site / src / components / scroll - carousel . tsx
185180 </ div >
186181 ) ) }
187182 </ div >
You can’t perform that action at this time.
0 commit comments