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