-
-
Notifications
You must be signed in to change notification settings - Fork 359
Remove MaterialUI #608
Comments
Can I help? @Zeko369 |
Go for it 🚀 |
Hi @Zeko369, thanks for letting me help. I'm using the traditional dev environment. When I installed the dependencies it made changes in package-lock.json files. Will that be a problem as I need to commit these changes? What should I do about this? Also the change I should make is just change material-ui to chakra-ui, right? Or will there be any other changes since both of them are different? 😅 I haven't worked with either of them yet. 😅 |
@Arun-kc after which step is the package-lock.json changed? After the Also, which operating system and terminal / shell are you working with? |
Hi @allella , yea the package-lock.json file changed when i did My OS is windows, I'm working with WSL in VS with Ubuntu 18.04 LTS |
Don't worry about the package-lock, it's automated by renovate-bot. If TL;DR don't both committing any changes, the bot will take care of it. |
Thanks for clearing my doubt @ojeytonwilliams . I kept this work on hold because of this. I will resume my work on this soon. |
No problem @Arun-kc. We're just a little unfortunate, because npm 7 is a relatively large change so not everyone has leapt on it. The main thing is: don't feel like you have to do anything. If there are any issues, I'll resolve them. |
Just to clarify, this does not need to be done in one PR. Small changes are very welcome. |
Can I work on it? |
@SaNsK11 Yes, feel free to start small with a pull request to replace existing Material UI components with Chakra-UI. More background on the reason for the change is shown in our meeting notes If you have questions, then please post on this issue or in the chat. Reading the README and CONTRIBUTING.md are the best way to understand how the project and development is setup. |
@allella @ojeytonwilliams @Zeko369 When removing the material UI , I saw that in some places we have used makeStyles hook of material UI to create css classes? How should that be handled in chakra? Should we just pass them as Style props ? or Should we create a css Module for that component? |
@Ravichandra-C just pass them as Style Props |
@Zeko369 Thank you! I've made a PR with changes to ChapterForm and VenueForm Page components. Could you please check and let me know if they are ok? |
@Zeko369 How should this class be converted to chakra?
Its used in src/components/Pagelayout/index.tsx |
Hey @Ravichandra-C did you figure this out in the end? Let me know if you'd like me to take a look. |
@ojeytonwilliams I passed them as style props. pageRoot class is used in the client/src/components/PageLayout/index.tsx file like this
I changed it to this
Everything is working perfectly, padding values are also correct except the actual breakpoints of materialUI and chakra UI are slightly different. is that fine? |
@ojeytonwilliams @allella @Zeko369 On another note while removing the MaterialUI I noticed that these components are not referenced anywhere in code base. Am I missing anything? Should I still need to remove references of Material UI from them , if they are not referenced anywhere? |
This is great, I'd just change it to Yup, remove VenueItem/EventItem if they're not imported anywhere |
@allella @ojeytonwilliams @Zeko369 Could I log another issue to remove these files? or Should I remove them as part of this Issue?
|
You can remove them in the existing PR |
Remove all Material UI components from our frontend and replace them with Chakra-UI
The text was updated successfully, but these errors were encountered: