From 46a085f8dff34cfe726aa00a643f596743b9ef11 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 9 May 2024 20:31:37 +0800 Subject: [PATCH] chore: add datepicker to timeline --- web/src/components/HomeSidebar/TagsSection.tsx | 4 ++-- web/src/pages/Timeline.tsx | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/web/src/components/HomeSidebar/TagsSection.tsx b/web/src/components/HomeSidebar/TagsSection.tsx index ebb1b898..496d3567 100644 --- a/web/src/components/HomeSidebar/TagsSection.tsx +++ b/web/src/components/HomeSidebar/TagsSection.tsx @@ -44,9 +44,9 @@ const TagsSection = () => { return (
-
+
{t("common.tags")} -
+
{
-
-
-
- +
+
+
+
{new Date(selectedDateString).toLocaleDateString(i18n.language, { month: "short", day: "numeric" })} - + e.target.showPicker()} + onChange={(e) => setSelectedDateString(e.target.value)} + /> +
{dayjs(monthString).year()}