From 5966b9ff239105f779cb3cc238482c701de28bde Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 6 Sep 2025 15:20:22 +0300 Subject: [PATCH] chore(react/collections): add date navigation buttons to calendar touchbar --- .../src/translations/en/translation.json | 3 +- .../widgets/collections/calendar/index.tsx | 21 ++++++++- apps/client/src/widgets/react/TouchBar.tsx | 47 +++++++++++++++++-- 3 files changed, 65 insertions(+), 6 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index d10669b46..3085ecceb 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -597,7 +597,8 @@ "year": "Year", "year_previous": "Previous year", "year_next": "Next year", - "list": "List" + "list": "List", + "today": "Today" }, "close_pane_button": { "close_this_pane": "Close this pane" diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx index 4be81910d..306b86689 100644 --- a/apps/client/src/widgets/collections/calendar/index.tsx +++ b/apps/client/src/widgets/collections/calendar/index.tsx @@ -19,7 +19,7 @@ import FNote from "../../../entities/fnote"; import Button, { ButtonGroup } from "../../react/Button"; import ActionButton from "../../react/ActionButton"; import { RefObject } from "preact"; -import TouchBar, { TouchBarLabel, TouchBarSegmentedControl } from "../../react/TouchBar"; +import TouchBar, { TouchBarButton, TouchBarLabel, TouchBarSegmentedControl } from "../../react/TouchBar"; interface CalendarViewData { @@ -164,7 +164,7 @@ function CalendarHeader({ calendarRef }: { calendarRef: RefObject /> ))} -