pramod_Task-#298 : Update Contact #119
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Task-#298"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/repository/DirectoryRepository
Added a new method UpdateContact to handle contact updates.
/src/Pages/Directory/Directory
Updated the submitContact function to support both creating and updating contacts.
Integrated the UpdateContact component, now displayed in a modal.
src/hook/useDirectory
Enhanced the useDirectory hook to properly trigger on component mount.
src/hook/masterHook/useMaster
Introduced a new hook useContactCategory for managing contact creation and updates more effectively.
src/components/common/TagInput
Refined to prevent unnecessary re-renders.
Updated styles for improved consistency and performance.
src/components/common/
Introduced a new custom component for multi-select functionality:
SelectMultiple.jsx
MultiSelectDropdown.css
src/components/Directory/
Added a new UpdateContact component for editing existing contacts.
src/components/Directory/ManageDirectory
Improved form validation.
Integrated SelectMultiple.jsx for selecting multiple projects.
src/components/Directory/ListViewDirectory
Enabled functionality to open the update contact modal via:
setSelectedContact( contact )
setIsOpenModal(true)
src/components/Directory/
Added DirectorySchema.js using Zod for better readability and form validation in both create and update workflows.