Skip to content

[docs] Fix missing leading slashes in URLs#14249

Merged
alexfauquette merged 2 commits intomui:masterfrom
oliviertassinari:fix-301-pickers
Aug 19, 2024
Merged

[docs] Fix missing leading slashes in URLs#14249
alexfauquette merged 2 commits intomui:masterfrom
oliviertassinari:fix-301-pickers

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Aug 17, 2024

@oliviertassinari oliviertassinari added type: bug It doesn't behave as expected. docs Improvements or additions to the documentation. scope: pickers Changes related to the date/time pickers. labels Aug 17, 2024
Comment on lines -481 to +480
onKeyDown={(e: React.KeyboardEvent) => {
onKeyDown={(event: React.KeyboardEvent) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code policy to avoid shorthands

return (
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DemoWrapper link="/x/react-date-pickers/validation">
<DemoWrapper link="/x/react-date-pickers/validation/">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same case as the pricing page, but it's not as visible, Netlify has a bug: https://answers.netlify.com/t/no-trailing-slash-when-using-proxies/48790/11.

Comment on lines -81 to +86
<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' }}
>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 🎉

@oliviertassinari oliviertassinari changed the title Fix 301 pickers [pickers][docs] Fix missing leading slashes in URLs Aug 17, 2024
@mui-bot
Copy link

mui-bot commented Aug 17, 2024

Deploy preview: https://deploy-preview-14249--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 28680d7

@oliviertassinari oliviertassinari added the type: regression A bug, but worse, it used to behave as expected. label Aug 17, 2024
@LukasTy LukasTy changed the title [pickers][docs] Fix missing leading slashes in URLs [docs] Fix missing leading slashes in URLs Aug 19, 2024
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 💯
Thank you for taking care of it. 👍

selectedKey.location === location,
})}
onMouseDown={(e) => {
onMouseDown={(event) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: The code for these demos is not visible anywhere in the docs, so, it's not a visible problem. 👍

Copy link
Member Author

@oliviertassinari oliviertassinari Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. I could fix https://github.com/mui/material-ui/pull/43361/files because I could get a hit for my search of "event.key.toLowerCase() === 'c'" in the MUI's codebase. I didn't search for "e.key.toLowerCase() === 'c'"

Comment on lines -81 to +86
<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' }}
>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 🎉

Copy link
Contributor

@noraleonte noraleonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing these 🎉

@alexfauquette alexfauquette merged commit 60dc904 into mui:master Aug 19, 2024
@oliviertassinari oliviertassinari deleted the fix-301-pickers branch August 19, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. scope: pickers Changes related to the date/time pickers. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants