fix: remove Today tab from calendar, default to Week view
Some checks failed
Deploy to VM / deploy (push) Failing after 4s
Some checks failed
Deploy to VM / deploy (push) Failing after 4s
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user