Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Apr 12, 2022
1 parent c3e9b76 commit 4c61557
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ export const DateRangePicker = React.forwardRef(function DateRangePicker<TDate>(
const isDesktop = useMediaQuery(desktopModeMediaQuery);

if (isDesktop) {
return <DesktopDateRangePicker ref={ref} PopperProps={PopperProps} {...other} />;
return (
<DesktopDateRangePicker
ref={ref}
PopperProps={PopperProps}
TransitionComponent={TransitionComponent}
{...other}
/>
);
}

return (
Expand Down
8 changes: 4 additions & 4 deletions packages/x-date-pickers/src/DateTimePicker/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export function useDateTimePickerDefaultizedProps<
orientation: 'portrait',
openTo: 'day',
views: ['year', 'day', 'hours', 'minutes'],
minDate: themeProps.minDateTime ?? defaultDates.minDate,
maxDate: themeProps.maxDateTime ?? defaultDates.maxDate,
minTime: themeProps.minDateTime,
maxTime: themeProps.maxDateTime,
minDate: themeProps.minDateTime ?? themeProps.minDate ?? defaultDates.minDate,
maxDate: themeProps.maxDateTime ?? themeProps.maxDate ?? defaultDates.maxDate,
minTime: themeProps.minDateTime ?? themeProps.minTime,
maxTime: themeProps.maxDateTime ?? themeProps.maxTime,
ampmInClock: true,
showToolbar: false,
allowSameDateSelection: true,
Expand Down

0 comments on commit 4c61557

Please sign in to comment.