From 752c75f3fb54285b86f5b872c5c5245fd21d1c25 Mon Sep 17 00:00:00 2001 From: rahulramesha Date: Mon, 10 Jun 2024 12:52:44 +0530 Subject: [PATCH] fix build errors --- packages/ui/src/dropdowns/context-menu/root.tsx | 2 +- web/components/gantt-chart/sidebar/cycles/block.tsx | 2 -- web/components/gantt-chart/sidebar/cycles/sidebar.tsx | 1 - web/components/gantt-chart/sidebar/gantt-dnd-HOC.tsx | 2 +- web/components/gantt-chart/sidebar/issues/block.tsx | 2 -- web/components/gantt-chart/sidebar/issues/sidebar.tsx | 1 - web/components/gantt-chart/sidebar/modules/block.tsx | 2 -- web/components/gantt-chart/sidebar/modules/sidebar.tsx | 1 - 8 files changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/ui/src/dropdowns/context-menu/root.tsx b/packages/ui/src/dropdowns/context-menu/root.tsx index bea6189de..f172b9c47 100644 --- a/packages/ui/src/dropdowns/context-menu/root.tsx +++ b/packages/ui/src/dropdowns/context-menu/root.tsx @@ -74,7 +74,7 @@ const ContextMenuWithoutPortal: React.FC = (props) => { setPosition({ x: left, y: top }); setIsOpen(true); - }; + } const hideContextMenu = (e: KeyboardEvent) => { if (isOpen && e.key === "Escape") handleClose(); diff --git a/web/components/gantt-chart/sidebar/cycles/block.tsx b/web/components/gantt-chart/sidebar/cycles/block.tsx index 8247dcacf..d4e863af1 100644 --- a/web/components/gantt-chart/sidebar/cycles/block.tsx +++ b/web/components/gantt-chart/sidebar/cycles/block.tsx @@ -1,6 +1,4 @@ -import { MutableRefObject } from "react"; import { observer } from "mobx-react"; -import { MoreVertical } from "lucide-react"; // hooks import { CycleGanttSidebarBlock } from "@/components/cycles"; import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants"; diff --git a/web/components/gantt-chart/sidebar/cycles/sidebar.tsx b/web/components/gantt-chart/sidebar/cycles/sidebar.tsx index 540560491..0a7ca4a03 100644 --- a/web/components/gantt-chart/sidebar/cycles/sidebar.tsx +++ b/web/components/gantt-chart/sidebar/cycles/sidebar.tsx @@ -1,4 +1,3 @@ -import { MutableRefObject } from "react"; // ui import { Loader } from "@plane/ui"; // components diff --git a/web/components/gantt-chart/sidebar/gantt-dnd-HOC.tsx b/web/components/gantt-chart/sidebar/gantt-dnd-HOC.tsx index ae02a983c..a1f32b7c1 100644 --- a/web/components/gantt-chart/sidebar/gantt-dnd-HOC.tsx +++ b/web/components/gantt-chart/sidebar/gantt-dnd-HOC.tsx @@ -1,4 +1,4 @@ -import { MutableRefObject, useEffect, useRef, useState } from "react"; +import { useEffect, useRef, useState } from "react"; import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine"; import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter"; import { attachInstruction, extractInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item"; diff --git a/web/components/gantt-chart/sidebar/issues/block.tsx b/web/components/gantt-chart/sidebar/issues/block.tsx index e04605949..33405d844 100644 --- a/web/components/gantt-chart/sidebar/issues/block.tsx +++ b/web/components/gantt-chart/sidebar/issues/block.tsx @@ -1,6 +1,4 @@ -import React, { MutableRefObject } from "react"; import { observer } from "mobx-react"; -import { MoreVertical } from "lucide-react"; // components import { MultipleSelectEntityAction } from "@/components/core"; import { useGanttChart } from "@/components/gantt-chart/hooks"; diff --git a/web/components/gantt-chart/sidebar/issues/sidebar.tsx b/web/components/gantt-chart/sidebar/issues/sidebar.tsx index 27aa3e334..e1df73d01 100644 --- a/web/components/gantt-chart/sidebar/issues/sidebar.tsx +++ b/web/components/gantt-chart/sidebar/issues/sidebar.tsx @@ -1,4 +1,3 @@ -import { MutableRefObject } from "react"; // ui import { Loader } from "@plane/ui"; // components diff --git a/web/components/gantt-chart/sidebar/modules/block.tsx b/web/components/gantt-chart/sidebar/modules/block.tsx index 7ee9e53a4..b1489582d 100644 --- a/web/components/gantt-chart/sidebar/modules/block.tsx +++ b/web/components/gantt-chart/sidebar/modules/block.tsx @@ -1,6 +1,4 @@ -import { MutableRefObject } from "react"; import { observer } from "mobx-react"; -import { MoreVertical } from "lucide-react"; // hooks import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants"; import { useGanttChart } from "@/components/gantt-chart/hooks"; diff --git a/web/components/gantt-chart/sidebar/modules/sidebar.tsx b/web/components/gantt-chart/sidebar/modules/sidebar.tsx index e2a3a5bd4..fe8441466 100644 --- a/web/components/gantt-chart/sidebar/modules/sidebar.tsx +++ b/web/components/gantt-chart/sidebar/modules/sidebar.tsx @@ -1,4 +1,3 @@ -import { MutableRefObject } from "react"; // ui import { Loader } from "@plane/ui"; // components