From 3baa2ebf604ebcda463083176f5fa4b3317adfcc Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 13 Aug 2022 21:29:54 +0300 Subject: [PATCH] Calendar "This Week" disable click and focus Closes #862 Closes #859 --- app/routes/calendar/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/routes/calendar/index.tsx b/app/routes/calendar/index.tsx index 6d783fcae..76b843728 100644 --- a/app/routes/calendar/index.tsx +++ b/app/routes/calendar/index.tsx @@ -198,13 +198,16 @@ function WeekLinks() { data.weeks.length - 1, ].includes(i); + const isCurrentWeek = i == 4; + return ( isCurrentWeek && e.preventDefault()} > <>