Closed Tejashri-Taral closed 2 hours ago
Thank you for submitting your pull request! π We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! π
Can you give me a short mp4 for the changes you made? Cant really tell just by looking at the code, thanks
Hey @jfmartinz , closes #1464 Here is the Video :
https://github.com/jfmartinz/ResourceHub/assets/160386036/dd799492-5957-4537-a176-0561a221d0c9
Please take a look and review it.
π Your pull request has been successfully merged! π Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! π
Hey @jfmartinz , issue closes #1156 I have resolved the issue to persist the dark mode preference across page refreshes using localStorage. The changes ensure that the user's selected mode (dark or light) is maintained even after the page is refreshed.
Changes made are as follows :
Added functionality to check "localStorage" for the user's dark mode preference upon page load and set the initial state accordingly. Updated the event listener for the toggle switch to save the dark mode preference in localStorage whenever the user changes the mode. Now, Whenever user will refresh or log in the page again, The selected mode preference will be the same as chosen.
Please take a look and review it. Also, please add the labels.