From fe2745f1383f918e640a34d6767fae7d53797480 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 22 Apr 2026 13:14:01 +0000 Subject: [PATCH] fix: remove Today tab from calendar, default to Week view --- components/CalendarTab.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/CalendarTab.tsx b/components/CalendarTab.tsx index e714d0f..79a142f 100644 --- a/components/CalendarTab.tsx +++ b/components/CalendarTab.tsx @@ -243,10 +243,9 @@ function MonthView() { } export default function CalendarTab() { - const [view, setView] = useState<'today' | 'week' | 'month'>('today') + const [view, setView] = useState<'week' | 'month'>('week') - const viewOptions: { id: typeof view; label: string }[] = [ - { id: 'today', label: 'Сегодня' }, + const viewOptions: { id: 'week' | 'month'; label: string }[] = [ { id: 'week', label: 'Неделя' }, { id: 'month', label: 'Месяц' }, ] @@ -278,7 +277,7 @@ export default function CalendarTab() { - {(view === 'today' || view === 'week') && } + {view === 'week' && } {view === 'month' && } )