Closed TheNinza closed 3 years ago
I can do it
@rajdama ... sure, go ahead
helllo sir , i would like to contribute , please allow me go ahead , Thank you!
@Sanket2055 sorry mate, I already assigned this issue. Do check other issues for contribution.
@Sanket2055 sorry mate, I already assigned this issue. Do check other issues for contribution.
okay sir , no problem
@TheNinza Is it ok if I use redux to toggle between light and dark mode?
@TheNinza Is it ok if I use redux to toggle between light and dark mode?
I was thinking coz Material UI library has already been implemented, leveraging its capabilities should get the work done. Redux for just implementing dark theme might be a little over kill.
https://mui.com/customization/dark-mode/#toggling-color-mode
Check this one out for implementation with Material UI
But here the problem is the toggle button is in navbar. First we have to store a state and based on its value if is true then we have to show dark mode and if it is false we have to show light mode. We must get this state at App.jsx as we have to pass in ThemeProvider as props which is not possible as the state is in navbar component. So I was thinking to use redux.
Yeahh now I get the idea behind using the redux completely. Yeah sure you can implement redux.
Yeahh I will do that
@TheNinza you can check I have added dark mode.
You can refer to this link https://mui.com/customization/dark-mode/ to get information on implementing dark mode toggle with material UI