Find-Me-Issues icon indicating copy to clipboard operation
Find-Me-Issues copied to clipboard

Added localStorage support to preserve the selected theme

Open DolcePelo opened this issue 1 year ago • 3 comments

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

DolcePelo avatar Aug 01 '24 22:08 DolcePelo

Deploy Preview for find-me-issues failed.

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

netlify[bot] avatar Aug 01 '24 22:08 netlify[bot]

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

Name Link
Latest commit 7a90791e0b1ca7dee2f8bfa11e9a24f5b618f0bc
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.

netlify[bot] avatar Aug 01 '24 22:08 netlify[bot]

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

DolcePelo avatar Aug 01 '24 23:08 DolcePelo