Kiran-pro2001 / hackathon2024IITBhuRoundGrandFinale

TwitchIn - TwitchIn is a business and employment-focused social media platform that works through for the purpose to connect similar kind of peers.
https://kiran-pro2001.github.io/hackathon2024IITBhuRoundGrandFinale/
Other
5 stars 8 forks source link

BUG 🐞: Dark mode gets turned off on refeshing a page #36

Open aslams2020 opened 4 weeks ago

aslams2020 commented 4 weeks ago

Hey @Kiran-pro2001 ,

The Dark mode function gets turned off on refreshing a page or if we try to navigate to other pages through Footer. (You may check that) I think it is due to the theme state is not being persisted when the page is refreshed.

What are the benefits of this modification:

I believe by storing the theme state in the browser's local storage, we ensure that:

Screenshots

Before refreshing the page looks like(currently in dark mode) :

image

After refreshing the page :

image

@Kiran-pro2001, I hope I was able to explain the issue and the expected solution. If so, Could you please assign this issue to me under GSSoC 24?