From 3a5e352b964e901e336b2226d4a679cf39ef2e33 Mon Sep 17 00:00:00 2001 From: Tilumca Date: Thu, 15 Oct 2026 02:38:02 +0200 Subject: [PATCH] Dashboard: przycisk 'Utworz plan' w gornym narozniku karty 'Nastepny trening' (jak 'Zobacz wszystkie') --- app/src/pages/Dashboard.tsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/app/src/pages/Dashboard.tsx b/app/src/pages/Dashboard.tsx index ddd11f6..bd8eaeb 100644 --- a/app/src/pages/Dashboard.tsx +++ b/app/src/pages/Dashboard.tsx @@ -424,7 +424,7 @@ export default function Dashboard() {
- {data.nextTraining && ( + {data.nextTraining ? ( {new Date(data.nextTraining.date).toLocaleDateString('pl-PL', { weekday: 'long', @@ -432,6 +432,15 @@ export default function Dashboard() { month: 'long', })} + ) : ( + !data.activePlan && ( + + + + ) )}
{data.nextTraining ? ( @@ -465,16 +474,6 @@ export default function Dashboard() { ? 'Wszystko zrobione — czekaj na kolejny dzień z planu.' : 'Utwórz plan, aby rozpocząć treningi.' } - action={ - !data.activePlan ? ( - - - - ) : undefined - } /> )}