From f395ee23ecb9c5f9b4c96132c2aa2fb028f14741 Mon Sep 17 00:00:00 2001 From: xaralis <filip.varecha@fragaria.cz> Date: Tue, 29 Dec 2020 12:28:12 +0100 Subject: [PATCH] feat: show entry nr in program listing --- src/pages/Program.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/Program.jsx b/src/pages/Program.jsx index 4817280..964dd64 100644 --- a/src/pages/Program.jsx +++ b/src/pages/Program.jsx @@ -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> -- GitLab