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

[website] Update MUI X landing page #37966

Merged
merged 4 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
40 changes: 21 additions & 19 deletions docs/src/components/home/GetStartedButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,27 @@ export default function GetStartedButtons(props: GetStartedButtonsProps) {
>
Get started
</Button>
<Button
size="large"
// @ts-expect-error
variant="code"
endIcon={copied ? <CheckRounded color="primary" /> : <ContentCopyRounded />}
onClick={handleCopy}
sx={{
maxWidth: '324px',
display: 'inline-block',
justifyContent: 'start',
overflowX: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
position: 'relative',
pr: 5,
}}
>
{installation}
</Button>
{installation ? (
<Button
size="large"
// @ts-expect-error
variant="code"
endIcon={copied ? <CheckRounded color="primary" /> : <ContentCopyRounded />}
onClick={handleCopy}
sx={{
maxWidth: '324px',
display: 'inline-block',
justifyContent: 'start',
overflowX: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
position: 'relative',
pr: 5,
}}
>
{installation}
</Button>
) : null}
</Box>
);
}
4 changes: 2 additions & 2 deletions docs/src/components/productX/XHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export default function XHero() {
components. We&apos;re kicking it off with the most powerful Data Grid on the market.
</Typography>
<GetStartedButtons
installation="npm install @mui/x-data-grid"
to={ROUTES.dataGridDocs}
installation=""
cherniavskii marked this conversation as resolved.
Show resolved Hide resolved
to={ROUTES.advancedComponents}
sx={{ justifyContent: { xs: 'center', md: 'flex-start' } }}
/>
</Box>
Expand Down