From 12b7e6cdb75e6832a3b46ba8398685cfd4ebf6f0 Mon Sep 17 00:00:00 2001 From: tisachi Date: Sat, 17 Oct 2026 06:10:52 +0200 Subject: [PATCH] Dashboard: powitanie dostosowane do pory dnia - wieczor i w nocy --- app/src/pages/Dashboard.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/pages/Dashboard.tsx b/app/src/pages/Dashboard.tsx index 0787629..9c9113a 100644 --- a/app/src/pages/Dashboard.tsx +++ b/app/src/pages/Dashboard.tsx @@ -332,7 +332,13 @@ export default function Dashboard() { if (!data) return null; const now = new Date(); - const greeting = now.getHours() >= 18 ? 'Dobry wieczór' : 'Dzień dobry'; + const hour = now.getHours(); + const greeting = + hour >= 22 || hour < 6 + ? 'Dobrej nocy' + : hour >= 18 + ? 'Dobry wieczór' + : 'Dzień dobry'; const dateLine = now.toLocaleDateString('pl-PL', { weekday: 'long', day: 'numeric',