From e3c15b64460b01b9f982c79c4c3ce2811c40ff49 Mon Sep 17 00:00:00 2001 From: tisachi Date: Sat, 17 Oct 2026 05:51:00 +0200 Subject: [PATCH] Dashboard: licznik dni obok naglowka Nastepny trening, CTA pod cwiczeniami po prawej --- app/src/pages/Dashboard.tsx | 43 +++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/app/src/pages/Dashboard.tsx b/app/src/pages/Dashboard.tsx index ab8a3cd..858a842 100644 --- a/app/src/pages/Dashboard.tsx +++ b/app/src/pages/Dashboard.tsx @@ -477,9 +477,9 @@ export default function Dashboard() { {/* Następny trening */}
- - {data.nextTraining ? ( -
+
+ + {data.nextTraining && ( {`${new Date(data.nextTraining.date).toLocaleDateString('pl-PL', { weekday: 'long', @@ -487,24 +487,15 @@ export default function Dashboard() { month: 'long', })} · ${daysCountdown(daysFromToday(data.nextTraining.date))}`} - - - -
- ) : ( - !data.activePlan && ( - - Utwórz plan - - ) + )} +
+ {!data.nextTraining && !data.activePlan && ( + + Utwórz plan + )}
{data.nextTraining ? ( @@ -522,6 +513,16 @@ export default function Dashboard() { ))} +
+ + + +
) : (