diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx index 594e026..13886a2 100644 --- a/frontend/pages/index.tsx +++ b/frontend/pages/index.tsx @@ -11,17 +11,18 @@ import { VideoOnDemandIndex } from '../util/datatypes/VideoOnDemandIdentifier'; import { getIndex } from '../util/api'; export async function getServerSideProps() { - // Fetch VOD IDs - const { ids } = await getIndex(); + // Fetch VOD IDs and announcements + const { announcements, ids } = await getIndex(); return { props: { + announcements, ids, }, }; } -export default function Home({ ids }: VideoOnDemandIndex) { +export default function Home({ announcements, ids }: VideoOnDemandIndex) { const intl = useIntl(); return (
@@ -62,6 +63,14 @@ export default function Home({ ids }: VideoOnDemandIndex) { />

+ { + announcements.map(announcement => ( +

+ Announcement: {announcement} +

+ )) + } + {ids.map(({ id, title }) => (