feat: implement persistent dark mode toggle in navbar#339
Conversation
|
@Dev1822 is attempting to deploy a commit to the anubhav12302387's projects Team on Vercel. A member of the Team first needs to authorize it. |
❌ PR Format Check — Failed — Please Fix BelowHi @Dev1822! Please fix the issues below before your PR can proceed to mentor review. ❌ Must Fix Before Proceeding❌ Issue #330 is not assigned to you (@Dev1822) — You must be assigned to the issue before submitting a PR.
|
👋 Thanks for opening a PR, @Dev1822!Your PR has entered the 🎯 EventOne GSSoC PR Review Pipeline.
What happens next
A pipeline status comment will appear below and update automatically as your PR progresses. While you wait
This comment is posted only once. EventOne × GSSoC Automated Pipeline |
📝 Description
**Closes #330 **
This PR introduces full, persistent dark mode support across the Event.One platform, resolving issues with the theme toggle and system preference detection.
🚀 Changes Made
darkModestate inApp.jsxthat was aggressively overriding the globalThemeContexton mount and preventing the theme from persisting.<head>ofindex.html. This ensures the user's saved preference (or their system'sprefers-color-scheme) is applied before the React app mounts, preventing the screen from blinding the user with a flash of light mode on initial load.header-2.jsx) correctly hooks into theuseThemecontext and persists the selection tolocalStorage.📋 Checklist
mainbranch