Skip to content

Commit

Permalink
[hotfix] temporary removed theme date picker from homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Oct 1, 2022
1 parent d9ef6e7 commit ea1a6ae
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/src/components/home/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ 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 }),
});
// 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 +153,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 ea1a6ae

Please sign in to comment.