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() { ))} +
+ + + +
) : (