fix: build errors

This commit is contained in:
sriram veeraghanta 2024-05-11 15:14:59 +05:30
parent 3355be9c9c
commit 16d8dfc86e
15 changed files with 10 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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";

View File

@ -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";

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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";

View File

@ -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

View File

@ -57,14 +57,14 @@ export const IssueBlock: React.FC<IssueBlockProps> = 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`;

View File

@ -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";

View File

@ -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