The Bookmark Page is unavailable, so added a new field in tutorial called bookmarked whose value will be set to false at the time of document creation in firebase. Now when clicked on the "bookmark like Icon" it's value will toggle, with the help of toggleTutorialBookmark action. And then filtered out the tutorials with bookmarked==true and showed it at "/bookmarks" page.
Currently, I am dispatching the action toggleTutorialBookmark directly from within the Cards - do tell me if it needs to be dispatched from the Home page.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
Description
The Bookmark Page is unavailable, so added a new field in tutorial called
bookmarked
whose value will be set to false at the time of document creation in firebase. Now when clicked on the "bookmark like Icon" it's value will toggle, with the help oftoggleTutorialBookmark
action. And then filtered out the tutorials withbookmarked==true
and showed it at "/bookmarks" page.Related Issue
Fixes #1135
Motivation and Context
Wanted to make a little contribution.
How Has This Been Tested?
Tested Locally on my machine.
Video demonstrating the workings:
https://github.com/scorelab/Codelabz/assets/123815256/fce82ccd-9235-4482-846b-47d450672a10
Currently, I am dispatching the action
toggleTutorialBookmark
directly from within the Cards - do tell me if it needs to be dispatched from the Home page.Types of changes
Checklist: