Skip to content

Commit

Permalink
[docs] Revert mui#34541 (mui#34700)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored and felipe.richter committed Dec 6, 2022
1 parent 9bb0c35 commit 77758e4
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docs/src/components/home/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ const FolderTable = dynamic(() => import('../showcase/FolderTable'), {
ssr: false,
loading: createLoading({ width: 360, height: 212 }),
});

// TODO Revert #34541 when https://github.com/mui/mui-x/pull/6362 is released
// const ThemeDatePicker = dynamic(() => import('../showcase/ThemeDatePicker'), {
// ssr: false,
// loading: createLoading({ width: { md: 360, xl: 400 }, height: 260 }),
// });
const ThemeDatePicker = dynamic(() => import('../showcase/ThemeDatePicker'), {
ssr: false,
loading: createLoading({ width: { md: 360, xl: 400 }, height: 260 }),
});
const ThemeTabs = dynamic(() => import('../showcase/ThemeTabs'), {
ssr: false,
loading: createLoading({ width: { md: 360, xl: 400 }, height: 48 }),
Expand Down Expand Up @@ -154,15 +152,12 @@ export default function Hero() {
<ThemeChip />
</Box>
<ThemeTimeline />
{/* Temporary moved FolderTable to the next column due to ThemeDatePicker automatic focus */}
{/* <FolderTable /> */}
<FolderTable />
</Stack>
)}
{isMdUp && (
<Stack spacing={4} sx={{ ml: 4, '& > .MuiPaper-root': { maxWidth: 'none' } }}>
{/* Temporary removed ThemeDatePicker due to layout crash from auto focus */}
{/* <ThemeDatePicker /> */}
<FolderTable />
<ThemeDatePicker />
<ThemeTabs />
<Box sx={{ display: 'flex' }}>
<Box sx={{ flexGrow: 1 }}>
Expand Down

0 comments on commit 77758e4

Please sign in to comment.