Open KeithBrosch opened 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
dev-find | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 19, 2024 10:12pm |
There is another PR, #1061, that may technically fix this issue, but it doesn't make use of the useTheme
hook, and instead just replicates it's functionality within toggleTheme
.
Description
Fixed the onClick behavior of the Dark/Light Mode toggle so that the theme persists on refresh.
Related Issues
[#1057]
Changes Proposed
Fixed the behavior of
toggleTheme()
withinSidebar.jsx
to make use of ouruseTheme
hook, and removed redundant lines of code withintoggleTheme
.Now that we're properly using
useTheme
, we don't need to explicitly write things like:because these changes happen dynamically for us already in other parts of the code.
Checklist
Screenshots
Note to reviewers