diff --git a/apps/web/core/components/analytics/work-items/modal/index.tsx b/apps/web/core/components/analytics/work-items/modal/index.tsx index 895e23eed27..bb8e465db3c 100644 --- a/apps/web/core/components/analytics/work-items/modal/index.tsx +++ b/apps/web/core/components/analytics/work-items/modal/index.tsx @@ -1,9 +1,8 @@ import React, { useEffect, useState } from "react"; import { observer } from "mobx-react"; // plane package imports -import { createPortal } from "react-dom"; +import { ModalPortal, EPortalWidth, EPortalPosition } from "@plane/propel/portal"; import { ICycle, IModule, IProject } from "@plane/types"; -import { cn } from "@plane/utils"; import { useAnalytics } from "@/hooks/store/use-analytics"; // plane web components import { WorkItemsModalMainContent } from "./content"; @@ -32,41 +31,35 @@ export const WorkItemsModal: React.FC = observer((props) => { updateIsEpic(isPeekView ? (isEpic ?? false) : false); }, [isEpic, updateIsEpic, isPeekView]); - const portalContainer = document.getElementById("full-screen-portal") as HTMLElement; - - if (!isOpen) return null; - - const content = ( -
+ return ( +
-
- - -
+ +
-
+ ); - - return portalContainer ? createPortal(content, portalContainer) : content; });