Skip to content

Commit

Permalink
format dates on event site
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Nov 12, 2023
1 parent 770230f commit b3de38d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/strom/akcie/[[...params]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {Link} from '@/components/Clickable/Clickable'
import {PageLayout} from '@/components/PageLayout/PageLayout'
import {Markdown} from '@/components/StaticSites/Markdown'
import {Competition, Event} from '@/types/api/generated/competition'
import {formatDate} from '@/utils/formatDate'

Check failure on line 10 in src/pages/strom/akcie/[[...params]].tsx

View workflow job for this annotation

GitHub Actions / branch-test

Cannot find module '@/utils/formatDate' or its corresponding type declarations.
import {Seminar} from '@/utils/useSeminarInfo'

import styles from './competition.module.scss'
Expand Down Expand Up @@ -46,8 +47,8 @@ const StaticPage: NextPage<CompetitionPageProps> = ({
<p>
<b>Nadchádzajúci ročník:</b>
</p>
{upcoming_or_current_event.start && <p>Odkedy? {upcoming_or_current_event.start} </p>}
{upcoming_or_current_event.end && <p>Dokedy? {upcoming_or_current_event.end}</p>}
{upcoming_or_current_event.start && <p>Odkedy? {formatDate(upcoming_or_current_event.start)} </p>}
{upcoming_or_current_event.end && <p>Dokedy? {formatDate(upcoming_or_current_event.end)}</p>}
{upcoming_or_current_event.publication_set.length > 0 && (
<p>
<Link href={`/api/${upcoming_or_current_event.publication_set[0].file}`}>Pozvánka</Link>
Expand All @@ -57,7 +58,7 @@ const StaticPage: NextPage<CompetitionPageProps> = ({
<div>
<p>
Registrácia prebieha do:
{upcoming_or_current_event.registration_link.end}
{formatDate(upcoming_or_current_event.registration_link.end)}
<Link href={upcoming_or_current_event.registration_link.url}>Registračný formulár</Link>
</p>

Expand Down

0 comments on commit b3de38d

Please sign in to comment.