Skip to content

Commit

Permalink
fix: types of date-fns locale fr in build
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed May 6, 2024
1 parent 00c0d53 commit 3632a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp-next/components/filters/Dates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3632a36

Please sign in to comment.