diff --git a/src/app/presentations/page.tsx b/src/app/presentations/page.tsx index 032c198..127163b 100644 --- a/src/app/presentations/page.tsx +++ b/src/app/presentations/page.tsx @@ -5,6 +5,7 @@ import { notFound } from 'next/navigation'; import { Tile } from '@/components/tiles/tile'; import { getIndexData } from '@/models/get-index-data'; +import { SponsorCategory } from '@/models/models'; import slugify from '@/utils/slugify'; export const metadata: Metadata = { @@ -19,13 +20,17 @@ export default async function Presentations() { notFound(); } const presentations = data.presentations.sort((p1, p2) => p1.title.localeCompare(p2.title)); + const [bosch] = presentations.splice( + presentations.findIndex((p) => p.presenter.company?.category === SponsorCategory.MAIN_SPONSOR), + 1 + ); return (

Előadások

- {presentations.map((presentation) => ( + {[bosch, ...presentations].map((presentation) => (