-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(updateGoal): Enable update goal name and/or category after set (#29
) - **Added edit goal functionality**: Integrated an `Edit Goal` mode within the `GoalDetails` page, allowing users to update the goal name and category color directly from the goal header. - **UI adjustments**: - Added a dedicated `Edit` button to toggle the edit mode for the goal. - Added hover color changes using `darken` for the `Edit` button, providing visual feedback and aligning with the goal's theme color. - Used `presetValue` and `presetCategory` props in the `AddItem` component to prefill goal details during editing. - **Code structure improvements**: - Add the `updateGoal` function to update specific goal name and/or category. - Used `Collapse` to smoothly show/hide the `Edit Goal` input field on toggle. --------- Co-authored-by: ZL Asica <[email protected]>
- Loading branch information
1 parent
8599dcf
commit 757341a
Showing
4 changed files
with
95 additions
and
15 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