Skip to content

Commit 33de885

Browse files
committed
Update carousel for showcase
1 parent cb8087c commit 33de885

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

apps/site/src/components/scroll-carousel.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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-
>>>>>>> 63de57b4 (feat(site): showcase refinement):apps/site/src/components/scroll-carousel.tsx
185180
</div>
186181
))}
187182
</div>

0 commit comments

Comments
 (0)