fix: remove Today tab from calendar, default to Week view
Some checks failed
Deploy to VM / deploy (push) Failing after 4s

This commit is contained in:
Cosmo
2026-04-22 13:14:01 +00:00
parent 444239a5e5
commit fe2745f138

View File

@@ -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() {
</div>
</div>
{(view === 'today' || view === 'week') && <TimelineView range={view} />}
{view === 'week' && <TimelineView range={view} />}
{view === 'month' && <MonthView />}
</div>
)