calendar: remove agenda from month view
- Commit
39c5d2012847027be5ed934431b8217f8e4296c2- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-22 01:37 UTC (1 month ago)
- Parents
ea567c5
Diff
calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.ktindex 342cd6c09d..fae824dcb9 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/ui/CalendarScreen.kt@@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize-import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import com.vayunmathur.library.ui.DropdownMenu import com.vayunmathur.library.ui.DropdownMenuItem@@ -196,27 +195,15 @@ fun CalendarScreen(state: CalendarUiState, actions: CalendarActions) { onEventClick = { actions.openEvent(it) }, onDateViewingChanged = { actions.setSelectedDate(it) } )- CalendarViewModel.CalendarLayout.Month -> Column(Modifier.fillMaxSize()) {- Box(Modifier.weight(1f).fillMaxWidth()) {- MonthCalendarView(- context, state.events, state.calendars, state.calendarVisibility, state.today, state.dateViewing,- actions::visibleInstances,- onEventClick = { actions.openEvent(it) },- onDayClick = { actions.setSelectedDate(it) },- onDayLongClick = { actions.createEventOn(it) },- onDateViewingChanged = { actions.setSelectedDate(it) },- previewInstances = state.previewInstances,- )- }- Box(Modifier.weight(1f).fillMaxWidth()) {- AgendaView(- context, state.events, state.calendars, state.calendarVisibility, state.today, state.dateViewing,- actions::visibleInstances,- onEventClick = { actions.openEvent(it) },- onDateViewingChanged = { actions.setSelectedDate(it) }- )- }- }+ CalendarViewModel.CalendarLayout.Month -> MonthCalendarView(+ context, state.events, state.calendars, state.calendarVisibility, state.today, state.dateViewing,+ actions::visibleInstances,+ onEventClick = { actions.openEvent(it) },+ onDayClick = { actions.setSelectedDate(it) },+ onDayLongClick = { actions.createEventOn(it) },+ onDateViewingChanged = { actions.setSelectedDate(it) },+ previewInstances = state.previewInstances,+ ) else -> { CalendarPagerView( context,