Skip to content
Snippets Groups Projects
Commit f395ee23 authored by xaralis's avatar xaralis
Browse files

feat: show entry nr in program listing

parent 16c0cc3a
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ const Schedule = () => {
{scheduleIds.map((id) => {
const isCurrent = id === currentId;
const entry = items[id];
const fullTitle = `${entry.number}. ${entry.title}`;
return (
<div
className="flex flex-col md:flex-row my-4 duration-300 text-black"
......@@ -53,8 +54,8 @@ const Schedule = () => {
</div>
<div className="flex-grow w-full">
<h2 className="head-heavy-xs md:head-heavy-base mb-1">
{isCurrent && <Link to="/">{entry.title}</Link>}
{!isCurrent && entry.title}
{isCurrent && <Link to="/">{fullTitle}</Link>}
{!isCurrent && fullTitle}
</h2>
<div className="flex space-x-2">
<strong>Navrhovatel:</strong>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment