Skip to content

[docs] Fix git diff format in migration to v6#42711

Merged
oliviertassinari merged 2 commits intomui:nextfrom
oliviertassinari:fix-git-diff
Jun 23, 2024
Merged

[docs] Fix git diff format in migration to v6#42711
oliviertassinari merged 2 commits intomui:nextfrom
oliviertassinari:fix-git-diff

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jun 21, 2024

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation. label Jun 21, 2024
@mui-bot
Copy link

mui-bot commented Jun 21, 2024

Netlify deploy preview

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against bbf8578

Comment on lines -72 to +73
if (event.key === 'Escape' && chipRef.current) {
chipRef.current.blur();
if (event.key === 'Escape') {
chipRef.current!.blur();
Copy link
Member Author

Choose a reason for hiding this comment

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

I believe React guarantees the ref to be defined, so this is harmful defensive logic.

Comment on lines 103 to +104
<Grid
- disableEqualOverflow
- disableEqualOverflow
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 style (2 space tab)

Comment on lines 237 to 243
```diff
<Alert
- components={{ CloseButton: CustomButton }}
+ slots={{ closeButton: CustomButton }}
- componentsProps={{ closeButton: { testid: 'test-id' } }}
+ slots={{ closeButton: CustomButton }}
+ slotProps={{ closeButton: { testid: 'test-id' } }}
/>
Copy link
Member Author

Choose a reason for hiding this comment

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

git diff groups deletion and addition to make them easier to read. I believe here it's simple enough that we should stick to the better default.

@oliviertassinari oliviertassinari merged commit 6dfef05 into mui:next Jun 23, 2024
@oliviertassinari oliviertassinari deleted the fix-git-diff branch June 23, 2024 09:27
joserodolfofreitas pushed a commit to joserodolfofreitas/material-ui that referenced this pull request Jul 29, 2024
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants