commit fe23471c19c06c2ad6424360fe66304c122daa41
parent 3bc6a8cfcdfe06d5966c7426d6cc8408cf6521b8
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Fri, 1 Nov 2024 18:46:41 +0100
fix: active nav for startlist
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontend/App.jsx b/src/frontend/App.jsx
@@ -148,7 +148,7 @@ function App() {
<Route path="/score" element={<Score session={session} />} />
<Route path="/heats" element={<Heats session={session} />} />
<Route path="/athletes" element={<Athletes session={session} />} />
- <Route path="/startlist/:heatId" element={<Startlist session={session} />} />
+ <Route path="/heats/startlist/:heatId" element={<Startlist session={session} />} />
<Route path="/auth" element={<Auth />} />
<Route path="/authverify" element={<AuthVerify />} />
<Route path="/settings" element={<Settings session={session} />} />
diff --git a/src/frontend/Heats.jsx b/src/frontend/Heats.jsx
@@ -130,7 +130,7 @@ function HeatForm({session}) {
{heats.map(h => (
<tr key={h.id}>
<td data-title='Created at' className='right'>{new Date(h.created_at).toLocaleDateString(locale, dateOptions)}</td>
- <td data-title='Name'><Link to={generatePath('/startlist/:heatId', {heatId:h.id})}>{h.name}</Link></td>
+ <td data-title='Name'><Link to={generatePath('/heats/startlist/:heatId', {heatId:h.id})}>{h.name}</Link></td>
<td data-title='Location'>{h.location}</td>
<td data-title='Planned start'>{h.planned_start}</td>
<td><button onClick={e => deleteHeat(e, h.id, h.name, session)}>– del</button></td>