diff --git a/src/pages/strom/akcie/[[...params]].tsx b/src/pages/strom/akcie/[[...params]].tsx index e35ff283..9aabf1f6 100644 --- a/src/pages/strom/akcie/[[...params]].tsx +++ b/src/pages/strom/akcie/[[...params]].tsx @@ -1,5 +1,4 @@ import axios from 'axios' -import {DateTime} from 'luxon' import {GetServerSideProps, NextPage} from 'next' import {useRouter} from 'next/router' import {FC, Fragment} from 'react' @@ -37,20 +36,17 @@ const StaticPage: NextPage = ({competition, is_rules}) => Nadchádzajúci ročník:

{competition.upcoming_or_current_event.start && ( -

Odkedy? {DateTime.fromISO(competition.upcoming_or_current_event.start).toISODate()}

+

Odkedy? {competition.upcoming_or_current_event.start}

)} - {competition.upcoming_or_current_event.end && ( -

Dokedy? {DateTime.fromISO(competition.upcoming_or_current_event.start).toISODate()}

- )} - {competition.upcoming_or_current_event.unspecifiedpublication_set.length > 0 && ( + {competition.upcoming_or_current_event.end &&

Dokedy? {competition.upcoming_or_current_event.end}

} + {competition.upcoming_or_current_event.unspecifiedpublication_set?.length > 0 && (

Pozvánka: {competition.upcoming_or_current_event.unspecifiedpublication_set[0].name}

)} {competition.upcoming_or_current_event.registration_link && (

- Registračný formulár:{' '} - {DateTime.fromISO(competition.upcoming_or_current_event.registration_link.start).toISODate()} - - {DateTime.fromISO(competition.upcoming_or_current_event.registration_link.end).toISODate()} + Registračný formulár: {competition.upcoming_or_current_event.registration_link.start} - + {competition.upcoming_or_current_event.registration_link.end} {competition.upcoming_or_current_event.registration_link.url}

@@ -76,7 +72,7 @@ const StaticPage: NextPage = ({competition, is_rules}) =>

Archív:

- {competition.competition_type.name === 'Tábor' || competition.competition_type.name === 'Seminár' ? ( + {competition.competition_type.name === 'Tábor' ? (
{competition.history_events.map((event) => ( @@ -94,7 +90,9 @@ const StaticPage: NextPage = ({competition, is_rules}) => {competition.name} {event.school_year}
{event.publication_set.map((publication) => ( -
{publication.name}
+ + {publication.name} + ))} ))}