From 16d8dfc86e6afd15adc8525959d5bc68800af343 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Sat, 11 May 2024 15:14:59 +0530 Subject: [PATCH] fix: build errors --- web/components/headers/cycle-issues.tsx | 2 +- web/components/headers/cycles.tsx | 2 -- web/components/headers/global-issues.tsx | 2 -- web/components/headers/module-issues.tsx | 2 +- web/components/headers/modules-list.tsx | 2 -- web/components/headers/page-details.tsx | 2 +- web/components/headers/pages.tsx | 2 +- web/components/headers/project-inbox.tsx | 2 +- web/components/headers/project-issues.tsx | 2 +- web/components/headers/project-view-issues.tsx | 2 -- web/components/headers/project-views.tsx | 1 - web/components/headers/projects.tsx | 2 +- web/components/issues/issue-layouts/list/block.tsx | 4 ++-- web/components/issues/issue-layouts/save-filter-view.tsx | 1 - web/components/pages/list/block-item-action.tsx | 2 +- 15 files changed, 10 insertions(+), 20 deletions(-) diff --git a/web/components/headers/cycle-issues.tsx b/web/components/headers/cycle-issues.tsx index 602e32235..3b6d40534 100644 --- a/web/components/headers/cycle-issues.tsx +++ b/web/components/headers/cycle-issues.tsx @@ -3,7 +3,7 @@ import { observer } from "mobx-react"; import Link from "next/link"; import { useRouter } from "next/router"; // icons -import { ArrowRight, Plus, PanelRight } from "lucide-react"; +import { ArrowRight, PanelRight } from "lucide-react"; // types import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "@plane/types"; // ui diff --git a/web/components/headers/cycles.tsx b/web/components/headers/cycles.tsx index d58bcb31b..c2be61d82 100644 --- a/web/components/headers/cycles.tsx +++ b/web/components/headers/cycles.tsx @@ -1,8 +1,6 @@ import { FC } from "react"; import { observer } from "mobx-react-lite"; import { useRouter } from "next/router"; -// icons -import { Plus } from "lucide-react"; // ui import { Breadcrumbs, Button, ContrastIcon } from "@plane/ui"; // components diff --git a/web/components/headers/global-issues.tsx b/web/components/headers/global-issues.tsx index dfacf30e0..1ec2a5d2c 100644 --- a/web/components/headers/global-issues.tsx +++ b/web/components/headers/global-issues.tsx @@ -1,8 +1,6 @@ import { useCallback, useState } from "react"; import { observer } from "mobx-react-lite"; import { useRouter } from "next/router"; -// icons -import { PlusIcon } from "lucide-react"; // types import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "@plane/types"; // ui diff --git a/web/components/headers/module-issues.tsx b/web/components/headers/module-issues.tsx index d28cdb988..9a911103d 100644 --- a/web/components/headers/module-issues.tsx +++ b/web/components/headers/module-issues.tsx @@ -3,7 +3,7 @@ import { observer } from "mobx-react"; import Link from "next/link"; import { useRouter } from "next/router"; // icons -import { ArrowRight, PanelRight, Plus } from "lucide-react"; +import { ArrowRight, PanelRight } from "lucide-react"; // types import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "@plane/types"; // ui diff --git a/web/components/headers/modules-list.tsx b/web/components/headers/modules-list.tsx index e1b237809..90866d73e 100644 --- a/web/components/headers/modules-list.tsx +++ b/web/components/headers/modules-list.tsx @@ -1,7 +1,5 @@ import { observer } from "mobx-react-lite"; import { useRouter } from "next/router"; -// icons -import { Plus } from "lucide-react"; // ui import { Breadcrumbs, Button, DiceIcon } from "@plane/ui"; // components diff --git a/web/components/headers/page-details.tsx b/web/components/headers/page-details.tsx index 2dab6b92f..0a02c1528 100644 --- a/web/components/headers/page-details.tsx +++ b/web/components/headers/page-details.tsx @@ -1,7 +1,7 @@ import { FC } from "react"; import { observer } from "mobx-react"; import { useRouter } from "next/router"; -import { FileText, Plus } from "lucide-react"; +import { FileText } from "lucide-react"; // hooks // ui import { Breadcrumbs, Button } from "@plane/ui"; diff --git a/web/components/headers/pages.tsx b/web/components/headers/pages.tsx index 707048af4..7ab9cb75d 100644 --- a/web/components/headers/pages.tsx +++ b/web/components/headers/pages.tsx @@ -1,6 +1,6 @@ import { observer } from "mobx-react"; import { useRouter } from "next/router"; -import { FileText, Plus } from "lucide-react"; +import { FileText } from "lucide-react"; // hooks // ui import { Breadcrumbs, Button } from "@plane/ui"; diff --git a/web/components/headers/project-inbox.tsx b/web/components/headers/project-inbox.tsx index c5661fe91..d61e2492d 100644 --- a/web/components/headers/project-inbox.tsx +++ b/web/components/headers/project-inbox.tsx @@ -1,7 +1,7 @@ import { FC, useState } from "react"; import { observer } from "mobx-react"; import { useRouter } from "next/router"; -import { Plus, RefreshCcw } from "lucide-react"; +import { RefreshCcw } from "lucide-react"; // ui import { Breadcrumbs, Button, LayersIcon } from "@plane/ui"; // components diff --git a/web/components/headers/project-issues.tsx b/web/components/headers/project-issues.tsx index f3e6cd0e8..95983d85a 100644 --- a/web/components/headers/project-issues.tsx +++ b/web/components/headers/project-issues.tsx @@ -2,7 +2,7 @@ import { useCallback, useState } from "react"; import { observer } from "mobx-react"; import { useRouter } from "next/router"; // icons -import { Briefcase, Circle, ExternalLink, Plus } from "lucide-react"; +import { Briefcase, Circle, ExternalLink } from "lucide-react"; // types import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "@plane/types"; // ui diff --git a/web/components/headers/project-view-issues.tsx b/web/components/headers/project-view-issues.tsx index 3d8d151d0..297c976ee 100644 --- a/web/components/headers/project-view-issues.tsx +++ b/web/components/headers/project-view-issues.tsx @@ -2,8 +2,6 @@ import { useCallback } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; import { useRouter } from "next/router"; -// icons -import { Plus } from "lucide-react"; // types import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "@plane/types"; // ui diff --git a/web/components/headers/project-views.tsx b/web/components/headers/project-views.tsx index e3093e72a..3cd578847 100644 --- a/web/components/headers/project-views.tsx +++ b/web/components/headers/project-views.tsx @@ -1,6 +1,5 @@ import { observer } from "mobx-react"; import { useRouter } from "next/router"; -import { Plus } from "lucide-react"; // hooks // components import { Breadcrumbs, PhotoFilterIcon, Button } from "@plane/ui"; diff --git a/web/components/headers/projects.tsx b/web/components/headers/projects.tsx index 432603817..7126b2697 100644 --- a/web/components/headers/projects.tsx +++ b/web/components/headers/projects.tsx @@ -1,6 +1,6 @@ import { useCallback, useRef, useState } from "react"; import { observer } from "mobx-react"; -import { Search, Plus, Briefcase, X, ListFilter } from "lucide-react"; +import { Search, Briefcase, X, ListFilter } from "lucide-react"; // types import { TProjectFilters } from "@plane/types"; // ui diff --git a/web/components/issues/issue-layouts/list/block.tsx b/web/components/issues/issue-layouts/list/block.tsx index 1e90bf5bd..2403fcc53 100644 --- a/web/components/issues/issue-layouts/list/block.tsx +++ b/web/components/issues/issue-layouts/list/block.tsx @@ -57,14 +57,14 @@ export const IssueBlock: React.FC = observer((props: IssueBlock setPeekIssue({ workspaceSlug, projectId: issue.project_id, issueId: issue.id }); const issue = issuesMap[issueId]; - const subIssues = subIssuesStore.subIssuesByIssueId(issueId); + // const subIssues = subIssuesStore.subIssuesByIssueId(issueId); const { isMobile } = usePlatformOS(); if (!issue) return null; const canEditIssueProperties = canEditProperties(issue.project_id); const projectIdentifier = getProjectIdentifierById(issue.project_id); // if sub issues have been fetched for the issue, use that for count or use issue's sub_issues_count - const subIssuesCount = subIssues ? subIssues.length : issue.sub_issues_count; + // const subIssuesCount = subIssues ? subIssues.length : issue.sub_issues_count; const paddingLeft = `${spacingLeft}px`; diff --git a/web/components/issues/issue-layouts/save-filter-view.tsx b/web/components/issues/issue-layouts/save-filter-view.tsx index 14bd5e62d..036d537d8 100644 --- a/web/components/issues/issue-layouts/save-filter-view.tsx +++ b/web/components/issues/issue-layouts/save-filter-view.tsx @@ -1,5 +1,4 @@ import { FC, useState } from "react"; -import { Plus } from "lucide-react"; import { Button } from "@plane/ui"; // components import { CreateUpdateProjectViewModal } from "@/components/views"; diff --git a/web/components/pages/list/block-item-action.tsx b/web/components/pages/list/block-item-action.tsx index dbe9269a8..55d24dcdf 100644 --- a/web/components/pages/list/block-item-action.tsx +++ b/web/components/pages/list/block-item-action.tsx @@ -1,6 +1,6 @@ import React, { FC } from "react"; import { observer } from "mobx-react"; -import { Circle, Earth, Info, Lock, Minus } from "lucide-react"; +import { Earth, Info, Lock, Minus } from "lucide-react"; // ui import { Avatar, TOAST_TYPE, Tooltip, setToast } from "@plane/ui"; // components