issues
search
codehood-org
/
mentors-website
Codehood Mentors Website
https://mentors.codehood.org
MIT License
6
stars
5
forks
source link
create switch button to toggle favorite mentors
#41
Closed
islamCodehood
closed
3 years ago
islamCodehood
commented
3 years ago
A toggle button to filter mentors by hearted (fav) mentors.
Hearted mentors are already saved in localstorage under the key "heartedMentors".
There is a custom hook
useLocalStorageToggle
with a heartedMentors state.
There is a mentors state.
The button should be inside the MentorFilter component and located under the country filter.
The style should be the same as the dark/light mode toggle button.
It should be a Material UI
Switch
component
faturachmanyusup
commented
3 years ago
Hey Bro. I solved it. Can you accept my PR ?