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

DT-1125: Migrate away from @mui/styles Part 2 - ThemeProvider to use @mui/system #1731

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

snf2ye
Copy link
Contributor

@snf2ye snf2ye commented Jan 3, 2025

Background

More details about this migration here: #1730

Breaking out this change to help simplify other PRs.

Included Changes

Switch references from @mui/styles to @mui/material/styles


From migration guide: https://mui.com/material-ui/migration/v5-style-changes/#update-themeprovider-import

image

Note

I don't totally understand why this appears to still be working in combination with the sx components. We may need to eventually migrate away from this as well. But, I think that this ThemeProvider is providing the theme even in the changes in this PR to use the sx prop because things break if the theme is not referenced correctly.

But, I want to go ahead and remove all references directly to @mui/styles.

@snf2ye snf2ye force-pushed the sh/dt-1110-test-update-away-from-mui-styles branch from ba7ea8c to 477b913 Compare January 3, 2025 16:25
Copy link

cypress bot commented Jan 3, 2025

jade-data-repo-ui    Run #3896

Run Properties:  status check passed Passed #3896  •  git commit 839b871b4d ℹ️: Merge 83e527ad6308f5db390e644b61dda6e01d3a7056 into bcc70c7fe840f596a56ec53cd0d2...
Project jade-data-repo-ui
Branch Review sh/dt-1110-test-update-away-from-mui-styles
Run status status check passed Passed #3896
Run duration 02m 45s
Commit git commit 839b871b4d ℹ️: Merge 83e527ad6308f5db390e644b61dda6e01d3a7056 into bcc70c7fe840f596a56ec53cd0d2...
Committer Shelby Holden
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 17
View all changes introduced in this branch ↗︎

Copy link

sonarqubecloud bot commented Jan 3, 2025

Copy link
Contributor

@fboulnois fboulnois left a comment

Choose a reason for hiding this comment

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

This one seems pretty straightforward 👍

@snf2ye snf2ye marked this pull request as ready for review January 7, 2025 14:38
@snf2ye snf2ye requested a review from a team as a code owner January 7, 2025 14:38
@snf2ye snf2ye requested review from rushtong and s-rubenstein and removed request for a team January 7, 2025 14:38
@snf2ye snf2ye changed the title DT-1110: Migrate away from @mui/styles Part 2 - ThemeProvider to use @mui/system DT-1125: Migrate away from @mui/styles Part 2 - ThemeProvider to use @mui/system Jan 7, 2025
@snf2ye snf2ye merged commit fa1b504 into develop Jan 7, 2025
9 checks passed
@snf2ye snf2ye deleted the sh/dt-1110-test-update-away-from-mui-styles branch January 7, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants