From 61fd2fe87d8a0b6165f9e4f5e329f780897c3014 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 31 Jan 2026 14:13:41 +0200 Subject: [PATCH] chore(collections): address requested changes --- .../widgets/collections/calendar/index.tsx | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx index c0fd0d7d3d..c9480c50e1 100644 --- a/apps/client/src/widgets/collections/calendar/index.tsx +++ b/apps/client/src/widgets/collections/calendar/index.tsx @@ -13,7 +13,7 @@ import date_notes from "../../../services/date_notes"; import dialog from "../../../services/dialog"; import froca from "../../../services/froca"; import { t } from "../../../services/i18n"; -import { isDesktop, isMobile, isMobile } from "../../../services/utils"; +import { isMobile } from "../../../services/utils"; import CollectionProperties from "../../note_bars/CollectionProperties"; import ActionButton from "../../react/ActionButton"; import Button, { ButtonGroup } from "../../react/Button"; @@ -224,22 +224,20 @@ function MobileCalendarViewSwitcher({ calendarRef }: { calendarRef: RefObject view.type === currentViewType); - if (isMobile()) { - return ( - - {CALENDAR_VIEWS.map(viewData => ( - calendarRef.current?.changeView(viewData.type)} - >{viewData.name} - ))} - - ); - } + return ( + + {CALENDAR_VIEWS.map(viewData => ( + calendarRef.current?.changeView(viewData.type)} + >{viewData.name} + ))} + + ); } function usePlugins(isEditable: boolean, isCalendarRoot: boolean) {