You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@arpanaditya After changing to dark theme, when clicked on the navbar icon, the theme gets toggled to light theme even before getting inside the navbar and selecting dark theme.
The text was updated successfully, but these errors were encountered:
@arpanaditya From what I seem to find you have implemented the set-theme state in the mobile component itself, where the useState is initialized with the light theme, so when we click on the mobile nav icon the mobile component opens and the theme gets initialized with light theme, analogous to that the same thing will happen in the web version as well i.e. when you reload the page in web the theme gets initialized with light theme. Instead of creating the state in the individual component you can create in the App.js file. Here I am linking some resources to help you
@arpanaditya After changing to dark theme, when clicked on the navbar icon, the theme gets toggled to light theme even before getting inside the navbar and selecting dark theme.
The text was updated successfully, but these errors were encountered: