Skip to content

Commit

Permalink
more clean-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Nov 28, 2023
1 parent ed7805f commit 61b5cbf
Showing 1 changed file with 71 additions and 70 deletions.
141 changes: 71 additions & 70 deletions docs/src/modules/components/MuiProductSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,36 +107,38 @@ export default function MuiProductSelector() {
name="MUI Core"
description="Ready-to-use foundational React components, free forever."
/>
<Box sx={{ ml: '36px', pl: 2, pt: 1.5, position: 'relative' }}>
<Stack
direction={{ xs: 'column', sm: 'row' }}
alignItems="flex-start"
spacing={1}
sx={{
'& > .MuiChip-root': {
position: 'initial',
'&:hover': {
'& .product-description': {
opacity: 1,
},
<Stack
direction={{ xs: 'column', sm: 'row' }}
alignItems="flex-start"
spacing={1}
sx={{
ml: '36px',
pl: 2,
pt: 1.5,
position: 'relative',
'& > .MuiChip-root': {
position: 'initial',
'&:hover': {
'& .product-description': {
opacity: 1,
},
},
}}
>
{coreProducts.map((product) => (
<Chip
key={product.name}
color={pageContext.productId === product.id ? 'primary' : undefined}
variant={pageContext.productId === product.id ? 'filled' : 'outlined'}
component={Link}
href={product.href}
label={product.name}
clickable
size="small"
/>
))}
</Stack>
</Box>
},
}}
>
{coreProducts.map((product) => (
<Chip
key={product.name}
color={pageContext.productId === product.id ? 'primary' : undefined}
variant={pageContext.productId === product.id ? 'filled' : 'outlined'}
component={Link}
href={product.href}
label={product.name}
clickable
size="small"
/>
))}
</Stack>
</Box>
<Box
component="li"
Expand All @@ -149,56 +151,55 @@ export default function MuiProductSelector() {
name="MUI X"
description="Advanced and powerful components for complex use cases."
/>
<Box sx={{ ml: '36px', pl: 2, pt: 1.5, position: 'relative' }}>
<Stack
direction={{ xs: 'column', sm: 'row' }}
alignItems="flex-start"
spacing={1}
sx={{
'& > .MuiChip-root': {
position: 'initial',
'&:hover': {
'& .product-description': {
opacity: 1,
},
<Stack
direction={{ xs: 'column', sm: 'row' }}
alignItems="flex-start"
spacing={1}
sx={{
ml: '36px',
pl: 2,
pt: 1.5,
position: 'relative',
'& > .MuiChip-root': {
position: 'initial',
'&:hover': {
'& .product-description': {
opacity: 1,
},
},
}}
>
{advancedProducts.map((product) => (
<Chip
key={product.name}
color={pageContext.productId === product.id ? 'primary' : undefined}
variant={pageContext.productId === product.id ? 'filled' : 'outlined'}
component={Link}
href={product.href}
label={product.name}
clickable
size="small"
/>
))}
</Stack>
</Box>
},
}}
>
{advancedProducts.map((product) => (
<Chip
key={product.name}
color={pageContext.productId === product.id ? 'primary' : undefined}
variant={pageContext.productId === product.id ? 'filled' : 'outlined'}
component={Link}
href={product.href}
label={product.name}
clickable
size="small"
/>
))}
</Stack>
</Box>
<li role="none">
<Link
href={ROUTES.toolpadDocs}
sx={[
{
p: 2,
pr: 3,
width: '100%',
sx={(theme) => ({
p: 2,
pr: 3,
width: '100%',
'&:hover': {
backgroundColor: 'grey.50',
},
...theme.applyDarkStyles({
'&:hover': {
backgroundColor: 'grey.50',
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
},
},
(theme) =>
theme.applyDarkStyles({
'&:hover': {
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
},
}),
]}
}),
})}
>
<ProductSubMenu
role="menuitem"
Expand Down

0 comments on commit 61b5cbf

Please sign in to comment.