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
206 stars 1.13k forks source link

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

Closed Ritik-The-Dev closed 4 months ago

Ritik-The-Dev commented 4 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 4 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 19, 2024 3:12am
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2024 3:12am
krishnaacharyaa commented 4 months ago

LGTM @Ritik-The-Dev I'll get this in, Thank you