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] Temporary remove date picker from home page #34541

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/src/components/home/Hero.tsx
Original file line number Diff line number Diff line change
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'), {
mnajdova marked this conversation as resolved.
Show resolved Hide resolved
// 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