krishnaacharyaa / wanderlust

WanderLust is a MERN travel blog website 🚀 This project is aimed to help people to contribute in open source, upskill in react and master git.
https://wanderlust-beta.vercel.app/
MIT License
222 stars 1.25k forks source link

fix-#159 : Configured Theme changes to light mode on page refresh in add blogs page #284

Closed Ritik-The-Dev closed 6 months ago

Ritik-The-Dev commented 6 months ago

Summary

Fixed the issue of the theme changing to light mode on page refresh in the add blogs page by adding the class "dark" to the document if the theme is set to "dark" in local storage.

Description

The issue occurred because the class list did not include "dark" while in dark mode, so I added it when the theme is set to "dark" in local storage.

Issue(s) Addressed

Closes #159

Prerequisites

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2024 6:17pm
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2024 6:17pm