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

IMPROVEMENT: partial migration @mui/styles to tss-react #1338

Merged
merged 6 commits into from
Jun 3, 2024

Conversation

Caldwell-74
Copy link
Contributor

@Caldwell-74 Caldwell-74 commented Jun 1, 2024

its well known that @mui/styles is deprecated and stops us from updating other (core) packages like react

tss-react is a type safe package that implements a replacement for makeStyle that uses nearly the exact same syntax
its well maintained (>24k commits, closed >17k issues from ~19k, merged >22k PRs)
with a goal to stay seamlessly integrateable with mui
https://github.com/garronej/tss-react

i changed all most occurences of makeStyle, createStyle, withStyle

one problem that occured was an import error thats why i moved the logBoxBaseZIndex into its own constant file to resolve it

another (not yet fixed) problem is that the IPvGo board is broken, here i hope to get help from Ficocelli the creator of IPvGo to resolve this aswell

the nested style structure of IPvGO makes it harder to migrate away from it thats why i reverted those changes
the package allows for nested structures but my understanding of the subject is not deep enough to migrate them correctly

so far i havent removed @mui/styles nor upgraded any packages

@Caldwell-74 Caldwell-74 marked this pull request as ready for review June 2, 2024 17:53
@Caldwell-74 Caldwell-74 changed the title IMPROVEMENT: migrate @mui/styles to tss-react IMPROVEMENT: partial migration @mui/styles to tss-react Jun 2, 2024
Caldwell and others added 4 commits June 3, 2024 13:38
the nested structure of the styloes in IPvGO make it considerably harder to change away
@Caldwell-74
Copy link
Contributor Author

sorry for the messy commits
rebasing/merge conflicts did some wierd stuff and already reversed stuff reappeared

@Snarling Snarling merged commit cb92643 into bitburner-official:dev Jun 3, 2024
5 checks passed
@Caldwell-74 Caldwell-74 deleted the mui branch June 4, 2024 09:50
antoinedube pushed a commit to antoinedube/bitburner-source that referenced this pull request Aug 5, 2024
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.

2 participants