Skip to content

[DataGrid] Remove unnessary clsx() usages #17690

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

Merged
merged 4 commits into from
May 7, 2025

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented May 6, 2025

This PR simplifies the codebase by removing unnecessary uses of the clsx utility

Copy link

github-actions bot commented May 6, 2025

Thanks for adding a type label to the PR! 👍

@sai6855 sai6855 added core Covers general upkeep, such as minor refactoring, typo fixes, or structural changes. type: enhancement This is not a bug, nor a new feature labels May 6, 2025
@mui-bot
Copy link

mui-bot commented May 6, 2025

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

Generated by 🚫 dangerJS against 5f57d21

@flaviendelangle flaviendelangle changed the title [core] Remove unnessary clsx usages [DataGrid] Remove unnessary clsx usages May 6, 2025
@oliviertassinari oliviertassinari added the scope: data grid Changes or issues related to the data grid product label May 6, 2025
@oliviertassinari
Copy link
Member

oliviertassinari commented May 6, 2025

I have pushed another commit to cover the rest of the repository.

@sai6855 Can we do the same in Material UI? It seems that we have more dead code like this:

SCR-20250506-uidg

(Searching with clsx\([^,]*\))

@oliviertassinari oliviertassinari changed the title [DataGrid] Remove unnessary clsx usages [DataGrid] Remove unnessary clsx() usages May 6, 2025
@sai6855
Copy link
Contributor Author

sai6855 commented May 7, 2025

Can we do the same in Material UI?

Updated here -> mui/material-ui#46084, there are still few similar instances but those are in joy-ui package, since we are not relasing joy-ui anymore, i haven't updated that code

@oliviertassinari
Copy link
Member

@sai6855 Thanks. Yeah, agree, only Material UI needs to be updated.

@oliviertassinari oliviertassinari merged commit 4d231c8 into mui:master May 7, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Covers general upkeep, such as minor refactoring, typo fixes, or structural changes. performance scope: data grid Changes or issues related to the data grid product type: enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants