Skip to content

Commit

Permalink
Fix to use the provided classes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed May 22, 2024
1 parent 0653ee4 commit c7279e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ function DesktopDateTimePickerLayout<
TView extends DateOrTimeViewWithMeridiem,
>(props: PickersLayoutProps<TValue, TDate, TView>) {
const { toolbar, tabs, content, actionBar, shortcuts } = usePickerLayout(props);
const { sx, className, isLandscape, ref } = props;
const { sx, className, isLandscape, ref, classes } = props;
const isActionBarVisible = actionBar && (actionBar.props.actions?.length ?? 0) > 0;

return (
<PickersLayoutRoot
ref={ref}
className={clsx(className, pickersLayoutClasses.root)}
className={clsx(className, pickersLayoutClasses.root, classes?.root)}
sx={[
{
[`& .${pickersLayoutClasses.tabs}`]: { gridRow: 4, gridColumn: '1 / 4' },
Expand All @@ -40,7 +40,7 @@ function DesktopDateTimePickerLayout<
{isLandscape ? shortcuts : toolbar}
{isLandscape ? toolbar : shortcuts}
<PickersLayoutContentWrapper
className={pickersLayoutClasses.contentWrapper}
className={clsx(pickersLayoutClasses.contentWrapper, classes?.contentWrapper)}
sx={{ display: 'grid' }}
>
{content}
Expand Down

0 comments on commit c7279e1

Please sign in to comment.