Skip to content

Commit

Permalink
[docs] Temporary remove date picker from home page (mui#34541)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored and alexfauquette committed Oct 14, 2022
1 parent d550af0 commit b305532
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/src/components/home/Hero.tsx
Expand Up @@ -50,10 +50,11 @@ const FolderTable = dynamic(() => import('../showcase/FolderTable'), {
loading: createLoading({ width: 360, height: 212 }),
});

const ThemeDatePicker = dynamic(() => import('../showcase/ThemeDatePicker'), {
ssr: false,
loading: createLoading({ width: { md: 360, xl: 400 }, height: 260 }),
});
// 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 ThemeTabs = dynamic(() => import('../showcase/ThemeTabs'), {
ssr: false,
loading: createLoading({ width: { md: 360, xl: 400 }, height: 48 }),
Expand Down Expand Up @@ -153,12 +154,15 @@ export default function Hero() {
<ThemeChip />
</Box>
<ThemeTimeline />
<FolderTable />
{/* Temporary moved FolderTable to the next column due to ThemeDatePicker automatic focus */}
{/* <FolderTable /> */}
</Stack>
)}
{isMdUp && (
<Stack spacing={4} sx={{ ml: 4, '& > .MuiPaper-root': { maxWidth: 'none' } }}>
<ThemeDatePicker />
{/* Temporary removed ThemeDatePicker due to layout crash from auto focus */}
{/* <ThemeDatePicker /> */}
<FolderTable />
<ThemeTabs />
<Box sx={{ display: 'flex' }}>
<Box sx={{ flexGrow: 1 }}>
Expand Down

0 comments on commit b305532

Please sign in to comment.