Skip to content

Commit

Permalink
Merge pull request #1615 from merico-dev/date-picker-use-dates-provid…
Browse files Browse the repository at this point in the history
…er-config

fix(dashboard): remove redundant locale prop in Calendar
  • Loading branch information
GerilLeto authored Feb 17, 2025
2 parents 71d68c8 + c44a17a commit 0b62437
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DatePicker } from '@mantine/dates';
import dayjs from 'dayjs';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { DateRangeValue, DateRangeValue_Value } from '~/model';

type Props = {
Expand All @@ -12,7 +11,6 @@ type Props = {
allowSingleDateInRange: boolean;
};
export const Calendar = ({ value, onChange, close, max_days, allowSingleDateInRange }: Props) => {
const { i18n } = useTranslation();
const v = value.value;
const [begin, end] = v;
const dateLeft = useMemo(() => {
Expand Down Expand Up @@ -59,7 +57,6 @@ export const Calendar = ({ value, onChange, close, max_days, allowSingleDateInRa
minDate={minDate}
maxDate={maxDate}
allowSingleDateInRange={allowSingleDateInRange}
locale={i18n.language}
/>
);
};

0 comments on commit 0b62437

Please sign in to comment.