Skip to content

Commit

Permalink
[docs] Fix pickers link 301
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 17, 2024
1 parent 09899fb commit 992174e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
6 changes: 3 additions & 3 deletions docs/src/modules/components/overview/CommunityOrPro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function CommunityOrPro() {

<Button
size="small"
href="/x/introduction/licensing"
href="/x/introduction/licensing/"
endIcon={<ArrowForwardIcon />}
sx={{ width: 'fit-content' }}
>
Expand All @@ -60,7 +60,7 @@ export default function CommunityOrPro() {
'Free forever under an MIT license. Includes Date Pickers, Time Pickers, and Date Time Pickers.',
]}
backgroundColor="subtle"
link="/pricing"
link="/pricing/"
/>
</Box>
<Box sx={{ flexBasis: '50%' }}>
Expand All @@ -71,7 +71,7 @@ export default function CommunityOrPro() {
'Requires a commercial license. Includes all Community components plus the Date and Time Range Pickers.',
]}
backgroundColor="subtle"
link="/pricing"
link="/pricing/"
/>
</Box>
</Stack>
Expand Down
33 changes: 19 additions & 14 deletions docs/src/modules/components/overview/InfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@ import Stack from '@mui/material/Stack';
import Paper from '@mui/material/Paper';

type InfoCardProps = {
title: string;
description?: string | string[];
icon?: React.ReactNode;
onClick?: () => void;
active?: boolean;
backgroundColor?: 'gradient' | 'subtle';
description?: string | string[];
icon?: React.ReactNode;
link?: string;
onClick?: () => void;
title: string;
};
export default function InfoCard({
title,
description,
icon: Icon,
onClick,
active,
backgroundColor = 'gradient',
link,
}: InfoCardProps) {
export default function InfoCard(props: InfoCardProps) {
const {
active,
backgroundColor = 'gradient',
description,
icon: Icon,
link,
onClick,
title,
} = props;
const clickable = Boolean(onClick);

return (
Expand Down Expand Up @@ -78,7 +79,11 @@ export default function InfoCard({
}),
})}
>
<Stack direction="row" spacing={2} sx={{ mb: description ? 2 : 0, width: '100%' }}>
<Stack
direction="row"
spacing={2}
sx={{ mb: description ? 2 : 0, width: '100%', alignItems: 'center' }}
>
{Icon}
<Typography
gutterBottom
Expand Down

0 comments on commit 992174e

Please sign in to comment.