Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: duplicate UI

bautistaaa5c41c0adf917
diff --git a/apps/web/src/app/[locale]/tracks/_components/track-enrolled-section-carousel.tsx b/apps/web/src/app/[locale]/tracks/_components/track-enrolled-section-carousel.tsx
index ef25fd8d..d0c1ee66 100644
--- a/apps/web/src/app/[locale]/tracks/_components/track-enrolled-section-carousel.tsx
+++ b/apps/web/src/app/[locale]/tracks/_components/track-enrolled-section-carousel.tsx
@@ -5,27 +5,16 @@ import type { EnrolledTracks } from './track.action';
export function EnrolledTrackSectionCarousel({ tracks }: { tracks: EnrolledTracks }) {
return (
- <>
- <div className="container p-4">
- <h2 className="relative text-3xl font-bold tracking-tight">
- <div className="absolute -left-8 -z-10 h-12 w-32 rounded-full bg-blue-300/50 blur-3xl" />
- Your Tracks
- </h2>
- </div>
-
- <section className="relative flex w-full flex-row gap-4 overflow-hidden rounded-[2.5rem]">
- <Carousel>
- {tracks.map((t) => (
- <Link
- className="group w-[250px] flex-none snap-center focus:outline-none sm:w-[330px] xl:w-[333px]"
- href={`/tracks/${t.slug}`}
- key={t.id}
- >
- <PersonalTrackCard track={t} />
- </Link>
- ))}
- </Carousel>
- </section>
- </>
+ <Carousel>
+ {tracks.map((t) => (
+ <Link
+ className="group w-[250px] flex-none snap-center focus:outline-none sm:w-[330px] xl:w-[333px]"
+ href={`/tracks/${t.slug}`}
+ key={t.id}
+ >
+ <PersonalTrackCard track={t} />
+ </Link>
+ ))}
+ </Carousel>
);
}