Skip to content

Commit

Permalink
change link for publications to open instead of download
Browse files Browse the repository at this point in the history
  • Loading branch information
vikibrezinova committed Nov 11, 2023
1 parent 555c019 commit 2f282e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/strom/akcie/[[...params]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ const StaticPage: NextPage<CompetitionPageProps> = ({competition, is_rules}) =>
{competition.upcoming_or_current_event.end && <p>Dokedy? {competition.upcoming_or_current_event.end}</p>}
{competition.upcoming_or_current_event.publication_set.length > 0 && (
<p>
<Link
href={`/api/competition/publication/${competition.upcoming_or_current_event.publication_set[0].id}/download/`}
>
Pozvánka
</Link>
<Link href={`/api/${competition.upcoming_or_current_event.publication_set[0].file}`}>Pozvánka</Link>
</p>
)}
{competition.upcoming_or_current_event.registration_link && (
Expand Down Expand Up @@ -96,7 +92,7 @@ const StaticPage: NextPage<CompetitionPageProps> = ({competition, is_rules}) =>
{competition.name} {event.school_year}
</div>
{event.publication_set.map((publication) => (
<Link key={publication.id} href={`/api/competition/publication/${publication.id}/download/`}>
<Link key={publication.id} href={`/api/${publication.file}`}>
{publication.name}
</Link>
))}
Expand Down

0 comments on commit 2f282e6

Please sign in to comment.