feat: deal tags
This commit is contained in:
@ -3,7 +3,8 @@ import { useProjectsContext } from "@/app/deals/contexts/ProjectsContext";
|
||||
import { useDrawersContext } from "@/drawers/DrawersContext";
|
||||
|
||||
const useProjectActions = () => {
|
||||
const { selectedProject, projectsCrud } = useProjectsContext();
|
||||
const { selectedProject, projectsCrud, refetchProjects } =
|
||||
useProjectsContext();
|
||||
const { openDrawer } = useDrawersContext();
|
||||
|
||||
const onCreateClick = () => {
|
||||
@ -27,6 +28,7 @@ const useProjectActions = () => {
|
||||
onChange: value => projectsCrud.onUpdate(value.id, value),
|
||||
onDelete: projectsCrud.onDelete,
|
||||
},
|
||||
onClose: refetchProjects,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user