Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added localStorage support to preserve the selected theme #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DolcePelo
Copy link

Description of changes

  • Added support for localStorage to persist the selected theme (light/dark) after refreshing the page.
  • Modified the ThemeProvider component to save and load the theme from localStorage.
  • Used useEffect to load the stored theme when the component mounts.

How to Test Changes

  1. Change the theme from the user interface.
  2. Refresh the page.
  3. Verify that the selected theme persists after the refresh

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for find-me-issues failed.

Name Link
🔨 Latest commit 7a90791
🔍 Latest deploy log https://app.netlify.com/sites/find-me-issues/deploys/66ac131b660d400008f474cf

Copy link

netlify bot commented Aug 1, 2024

Deploy Preview for find-me-issues-web-app ready!

Name Link
🔨 Latest commit 7a90791
🔍 Latest deploy log https://app.netlify.com/sites/find-me-issues-web-app/deploys/66ac131b0bacf0000845a962
😎 Deploy Preview https://deploy-preview-122--find-me-issues-web-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DolcePelo
Copy link
Author

i'll wait you to check the changes hope it's useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants