Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Revert #34541 #34700

Merged
merged 1 commit into from Oct 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 6 additions & 11 deletions docs/src/components/home/Hero.tsx
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