Skip to content

Commit

Permalink
fix(dashboard): remove redundant locale prop in Calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeekoZhu authored and GerilLeto committed Feb 17, 2025
1 parent 71d68c8 commit c44a17a
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 c44a17a

Please sign in to comment.