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() {
|
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 }[] = [
|
const viewOptions: { id: 'week' | 'month'; label: string }[] = [
|
||||||
{ id: 'today', label: 'Сегодня' },
|
|
||||||
{ id: 'week', label: 'Неделя' },
|
{ id: 'week', label: 'Неделя' },
|
||||||
{ id: 'month', label: 'Месяц' },
|
{ id: 'month', label: 'Месяц' },
|
||||||
]
|
]
|
||||||
@@ -278,7 +277,7 @@ export default function CalendarTab() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{(view === 'today' || view === 'week') && <TimelineView range={view} />}
|
{view === 'week' && <TimelineView range={view} />}
|
||||||
{view === 'month' && <MonthView />}
|
{view === 'month' && <MonthView />}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user