UsTaxes
UsTaxes copied to clipboard
Upgrade material UI v5
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
Was able to split off react-router here: #1016, will finish the Material ui part after.
I'd like to help with this.
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.
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