generated from Archit404Error/MERN-webapp
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Email notifications setting using checkbox (#244)
* Made initial changes to implementation of emailNotifications and checkbox * Changed default value * Implemented if statements in both controllers before sending email and added updatePreferences in profileForm * Updated functionality so checkbox actually reflects user's current preferences * use hook-form for email preferences * chore: Update query key in ProfileForm component * Use /users instead of /users/search * FIX: Checkbox does not show the actual state on page load, always remains unchecked. --------- Co-authored-by: Akinfolami Akin-Alamu <aoa9@cornell.edu> Co-authored-by: Jason Zheng <jasonz4200@gmail.com>
- Loading branch information
1 parent
dc0ac40
commit b3cd1c2
Showing
5 changed files
with
75 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters