Skip to content

Commit

Permalink
Always display tabs for desktop wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed May 19, 2020
1 parent 33d0a24 commit 4343115
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/DateTimePicker/DateTimePickerToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export const DateTimePickerToolbar: React.FC<ToolbarComponentProps> = ({
const utils = useUtils();
const classes = useStyles();
const wrapperVariant = React.useContext(WrapperVariantContext);
const showTabs = !hideTabs && typeof window !== 'undefined' && window.innerHeight > 667;
const showTabs =
wrapperVariant === 'desktop'
? true
: !hideTabs && typeof window !== 'undefined' && window.innerHeight > 667;

const formatHours = (time: MaterialUiPickersDate) =>
ampm ? utils.format(time, 'hours12h') : utils.format(time, 'hours24h');
Expand Down

0 comments on commit 4343115

Please sign in to comment.