UsTaxes icon indicating copy to clipboard operation
UsTaxes copied to clipboard

Upgrade material UI v5

Open zakpatterson opened this issue 2 years ago • 4 comments

This updates Material UI to v5

For Material-ui,

  • DatePicker is now inside the mui lab package
  • Alert is out of lab and into core
  • useStyles is completely changed. Now we build new components using a function styled.

closes #893 - date-fns no longer needed

This PR is broken up as follows:

Automatic, package updates and import moves:

Automatic codemod script provided by mui:

Code adaptations for updates

two blockers:

  • [ ] Still need to match our theme.
  • [ ] styled use is broken, trying to follow this migration doc: https://mui.com/system/styled/#main-content

zakpatterson avatar Mar 13 '22 06:03 zakpatterson

Was able to split off react-router here: #1016, will finish the Material ui part after.

zakpatterson avatar Mar 16 '22 13:03 zakpatterson

I'd like to help with this.

bluSCALE4 avatar Apr 05 '22 15:04 bluSCALE4

I'd like to help with this.

Awesome! Go ahead and send PRs based on this branch to my fork:

https://github.com/zakpatterson/UsTaxes/tree/upgrade-material-ui-react-router

and I'll merge them so they get incorporated here.

zakpatterson avatar Apr 06 '22 01:04 zakpatterson

I found that converting the styles using styled components was too messy, but then i found tss-react! it makes the conversion quite a bit easier

https://github.com/garronej/tss-react

michaeljwiebe avatar Sep 15 '22 01:09 michaeljwiebe