From 3632a3638d38b8a690a715a0ac96801abad3d5f1 Mon Sep 17 00:00:00 2001 From: horek Date: Mon, 6 May 2024 17:09:25 +0200 Subject: [PATCH] fix: types of date-fns locale fr in build --- webapp-next/components/filters/Dates.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp-next/components/filters/Dates.tsx b/webapp-next/components/filters/Dates.tsx index d0f12ae..b6e5b2e 100644 --- a/webapp-next/components/filters/Dates.tsx +++ b/webapp-next/components/filters/Dates.tsx @@ -2,7 +2,7 @@ import { Cm2dContext } from '@/utils/cm2d-provider'; import { getLastDayOfMonth } from '@/utils/tools'; import { useContext, useEffect, useRef, useState } from 'react'; import DatePicker, { registerLocale } from 'react-datepicker'; -import fr from 'date-fns/locale/fr'; +import { fr } from 'date-fns/locale'; import 'react-datepicker/dist/react-datepicker.css'; registerLocale('fr', fr);