Skip to content

Commit

Permalink
[@mantine/dates] Fix valueFormatter prop being added to DateTimePic…
Browse files Browse the repository at this point in the history
…ker types
  • Loading branch information
rtivital committed Aug 14, 2024
1 parent fa391ab commit d4f1ab5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export type DateTimePickerStylesNames =

export interface DateTimePickerProps
extends BoxProps,
Omit<DateInputSharedProps, 'classNames' | 'styles' | 'closeOnChange' | 'size'>,
Omit<
DateInputSharedProps,
'classNames' | 'styles' | 'closeOnChange' | 'size' | 'valueFormatter'
>,
Omit<CalendarBaseProps, 'defaultDate'>,
Omit<CalendarSettings, 'onYearMouseEnter' | 'onMonthMouseEnter'>,
StylesApiProps<DateTimePickerFactory> {
Expand Down Expand Up @@ -215,6 +218,7 @@ export const DateTimePicker = factory<DateTimePickerFactory>((_props, ref) => {
{...others}
type="default"
__staticSelector="DateTimePicker"
// valueFormatter={valueFormatter}
>
<DatePicker
{...calendarProps}
Expand Down

0 comments on commit d4f1ab5

Please sign in to comment.