From 1a9a992372d552bf13f01ea0f30f3978c4610580 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sun, 27 Jul 2025 11:57:39 +0700 Subject: [PATCH] feat: filters --- .../src/components/launches/filters.tsx | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/apps/frontend/src/components/launches/filters.tsx b/apps/frontend/src/components/launches/filters.tsx index 8138127f..e69bea58 100644 --- a/apps/frontend/src/components/launches/filters.tsx +++ b/apps/frontend/src/components/launches/filters.tsx @@ -14,7 +14,7 @@ export const Filters = () => { // Set dayjs locale based on current language const currentLanguage = i18next.resolvedLanguage || 'en'; - dayjs.locale(currentLanguage); + dayjs.locale(); const betweenDates = week.display === 'day' @@ -214,7 +214,7 @@ export const Filters = () => { ); return (
-
+
{ />
-
-
- Today +
+
+ {week.display === 'day' + ? `${dayjs() + .month(week.currentMonth) + .week(week.currentWeek) + .day(week.currentDay) + .format('dddd (L)')}` + : week.display === 'week' + ? betweenDates + : dayjs().month(week.currentMonth).format('MMMM YYYY')}
{
- {week.display === 'day' - ? `${dayjs() - .month(week.currentMonth) - .week(week.currentWeek) - .day(week.currentDay) - .format('dddd (L)')}` - : week.display === 'week' - ? betweenDates - : dayjs().month(week.currentMonth).format('MMMM YYYY')} +
+
+ Today +
+