diff --git a/web/components/views/view-list-item.tsx b/web/components/views/view-list-item.tsx index 73e33e650..ea5649c70 100644 --- a/web/components/views/view-list-item.tsx +++ b/web/components/views/view-list-item.tsx @@ -6,7 +6,7 @@ import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components -import { DeleteProjectViewModal } from "components/views"; +import { CreateUpdateProjectViewModal, DeleteProjectViewModal } from "components/views"; // ui import { CustomMenu } from "@plane/ui"; // icons @@ -24,6 +24,7 @@ type Props = { export const ProjectViewListItem: React.FC = observer((props) => { const { view } = props; + const [createUpdateViewModal, setCreateUpdateViewModal] = useState(false); const [deleteViewModal, setDeleteViewModal] = useState(false); const router = useRouter(); @@ -47,6 +48,15 @@ export const ProjectViewListItem: React.FC = observer((props) => { return ( <> + {workspaceSlug && projectId && view && ( + setCreateUpdateViewModal(false)} + workspaceSlug={workspaceSlug.toString()} + projectId={projectId.toString()} + data={view} + /> + )} setDeleteViewModal(false)} />
@@ -97,6 +107,7 @@ export const ProjectViewListItem: React.FC = observer((props) => { onClick={(e) => { e.preventDefault(); e.stopPropagation(); + setCreateUpdateViewModal(true); }} >