fix: remove unused imports and variables (part 3) (#8753)

Resolve oxlint no-unused-vars warnings in
apps/web/core/components/issues/.
This commit is contained in:
darkingtail 2026-03-25 04:20:38 +08:00 committed by sriram veeraghanta
parent 04d4490293
commit 5a7d1ebd65
80 changed files with 14 additions and 94 deletions

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState } from "react"; import { useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import Link from "next/link"; import Link from "next/link";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import type { FileRejection } from "react-dropzone"; import type { FileRejection } from "react-dropzone";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// hooks // hooks
import { useIssueDetail } from "@/hooks/store/use-issue-detail"; import { useIssueDetail } from "@/hooks/store/use-issue-detail";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState } from "react"; import { useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane-i18n // plane-i18n

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useState } from "react"; import React, { useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { copyUrlToClipboard, generateWorkItemLink } from "@plane/utils"; import { copyUrlToClipboard, generateWorkItemLink } from "@plane/utils";
@ -24,7 +23,7 @@ type TCreateIssueToastActionItems = {
export const CreateIssueToastActionItems = observer(function CreateIssueToastActionItems( export const CreateIssueToastActionItems = observer(function CreateIssueToastActionItems(
props: TCreateIssueToastActionItems props: TCreateIssueToastActionItems
) { ) {
const { workspaceSlug, projectId, issueId, isEpic = false } = props; const { workspaceSlug, issueId, isEpic = false } = props;
// state // state
const [copied, setCopied] = useState(false); const [copied, setCopied] = useState(false);
// store hooks // store hooks
@ -53,7 +52,7 @@ export const CreateIssueToastActionItems = observer(function CreateIssueToastAct
await copyUrlToClipboard(workItemLink); await copyUrlToClipboard(workItemLink);
setCopied(true); setCopied(true);
setTimeout(() => setCopied(false), 3000); setTimeout(() => setCopied(false), 3000);
} catch (error) { } catch (_error) {
setCopied(false); setCopied(false);
} }
e.preventDefault(); e.preventDefault();

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { Paperclip } from "lucide-react"; import { Paperclip } from "lucide-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import type { TIssueServiceType } from "@plane/types"; import type { TIssueServiceType } from "@plane/types";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useCallback, useState } from "react"; import React, { useCallback, useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import type { FileRejection } from "react-dropzone"; import type { FileRejection } from "react-dropzone";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useMemo } from "react"; import React, { useMemo } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { TOAST_TYPE, setToast } from "@plane/propel/toast"; import { TOAST_TYPE, setToast } from "@plane/propel/toast";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import type { TIssueServiceType } from "@plane/types"; import type { TIssueServiceType } from "@plane/types";
// components // components

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { PlusIcon } from "@plane/propel/icons"; import { PlusIcon } from "@plane/propel/icons";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useMemo } from "react"; import React, { useMemo } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState } from "react"; import { useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useMemo } from "react"; import React, { useMemo } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
// plane imports // plane imports
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types"; import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useEffect, useState, useCallback } from "react"; import React, { useEffect, useState, useCallback } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import type { TIssue, TIssueServiceType } from "@plane/types"; import type { TIssue, TIssueServiceType } from "@plane/types";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useMemo } from "react"; import { useMemo } from "react";
import { isEmpty } from "lodash-es"; import { isEmpty } from "lodash-es";
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useMemo, useState } from "react"; import { useMemo, useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { ListFilter } from "lucide-react"; import { ListFilter } from "lucide-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState } from "react"; import { useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { CircleDashed } from "lucide-react"; import { CircleDashed } from "lucide-react";

View file

@ -7,7 +7,6 @@
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports
import { WORK_ITEM_TRACKER_EVENTS } from "@plane/constants";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
import { PlusIcon, WorkItemsIcon } from "@plane/propel/icons"; import { PlusIcon, WorkItemsIcon } from "@plane/propel/icons";
import type { TIssue, TIssueServiceType } from "@plane/types"; import type { TIssue, TIssueServiceType } from "@plane/types";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useCallback } from "react"; import { useCallback } from "react";
import { cloneDeep } from "lodash-es"; import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
@ -25,14 +24,7 @@ type Props = {
}; };
export const SubIssuesCollapsibleTitle = observer(function SubIssuesCollapsibleTitle(props: Props) { export const SubIssuesCollapsibleTitle = observer(function SubIssuesCollapsibleTitle(props: Props) {
const { const { isOpen, parentIssueId, disabled, issueServiceType = EIssueServiceType.ISSUES, projectId } = props;
isOpen,
parentIssueId,
disabled,
issueServiceType = EIssueServiceType.ISSUES,
projectId,
workspaceSlug,
} = props;
// translation // translation
const { t } = useTranslation(); const { t } = useTranslation();
// store hooks // store hooks

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
// helpers // helpers
import { Button } from "@plane/propel/button"; import { Button } from "@plane/propel/button";

View file

@ -4,7 +4,7 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC, ReactNode } from "react"; import type { ReactNode } from "react";
import { Network } from "lucide-react"; import { Network } from "lucide-react";
// plane imports // plane imports
import { Tooltip } from "@plane/propel/tooltip"; import { Tooltip } from "@plane/propel/tooltip";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { CalendarDays } from "lucide-react"; import { CalendarDays } from "lucide-react";
// hooks // hooks

View file

@ -62,7 +62,7 @@ export const IssueLabel = observer(function IssueLabel(props: TIssueLabel) {
try { try {
if (onLabelUpdate) onLabelUpdate(data.label_ids || []); if (onLabelUpdate) onLabelUpdate(data.label_ids || []);
else await updateIssue(workspaceSlug, projectId, issueId, data); else await updateIssue(workspaceSlug, projectId, issueId, data);
} catch (error) { } catch (_error) {
setToast({ setToast({
title: t("toast.error"), title: t("toast.error"),
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useEffect } from "react"; import { useEffect } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";

View file

@ -54,7 +54,7 @@ export const IssueReaction = observer(function IssueReaction(props: TIssueReacti
type: TOAST_TYPE.SUCCESS, type: TOAST_TYPE.SUCCESS,
message: "Reaction created successfully", message: "Reaction created successfully",
}); });
} catch (error) { } catch (_error) {
setToast({ setToast({
title: "Error!", title: "Error!",
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState } from "react"; import { useState } from "react";
import { isNil } from "lodash-es"; import { isNil } from "lodash-es";
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -30,7 +30,6 @@ import { MONTHS_LIST } from "@/constants/calendar";
import { useIssues } from "@/hooks/store/use-issues"; import { useIssues } from "@/hooks/store/use-issues";
import useSize from "@/hooks/use-window-size"; import useSize from "@/hooks/use-window-size";
// store // store
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { ICalendarStore } from "@/store/issue/issue_calendar_view.store"; import type { ICalendarStore } from "@/store/issue/issue_calendar_view.store";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";

View file

@ -20,7 +20,6 @@ import { highlightIssueOnDrop } from "@/components/issues/issue-layouts/utils";
import { MONTHS_LIST } from "@/constants/calendar"; import { MONTHS_LIST } from "@/constants/calendar";
// helpers // helpers
// types // types
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";
import type { IProjectIssuesFilter } from "@/store/issue/project"; import type { IProjectIssuesFilter } from "@/store/issue/project";

View file

@ -15,7 +15,6 @@ import { ChevronLeftIcon, ChevronRightIcon } from "@plane/propel/icons";
import { getDate } from "@plane/utils"; import { getDate } from "@plane/utils";
import { MONTHS_LIST } from "@/constants/calendar"; import { MONTHS_LIST } from "@/constants/calendar";
import { useCalendarView } from "@/hooks/store/use-calendar-view"; import { useCalendarView } from "@/hooks/store/use-calendar-view";
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";
import type { IProjectIssuesFilter } from "@/store/issue/project"; import type { IProjectIssuesFilter } from "@/store/issue/project";

View file

@ -24,7 +24,6 @@ import { ToggleSwitch } from "@plane/ui";
import { CALENDAR_LAYOUTS } from "@/constants/calendar"; import { CALENDAR_LAYOUTS } from "@/constants/calendar";
import { useCalendarView } from "@/hooks/store/use-calendar-view"; import { useCalendarView } from "@/hooks/store/use-calendar-view";
import useSize from "@/hooks/use-window-size"; import useSize from "@/hooks/use-window-size";
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";
import type { IProjectIssuesFilter } from "@/store/issue/project"; import type { IProjectIssuesFilter } from "@/store/issue/project";

View file

@ -14,7 +14,6 @@ import type { TSupportedFilterForUpdate } from "@plane/types";
import { Row } from "@plane/ui"; import { Row } from "@plane/ui";
// icons // icons
import { useCalendarView } from "@/hooks/store/use-calendar-view"; import { useCalendarView } from "@/hooks/store/use-calendar-view";
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";
import type { IProjectIssuesFilter } from "@/store/issue/project"; import type { IProjectIssuesFilter } from "@/store/issue/project";

View file

@ -11,7 +11,6 @@ import { cn, getOrderedDays, renderFormattedPayloadDate } from "@plane/utils";
// hooks // hooks
import { useUserProfile } from "@/hooks/store/user"; import { useUserProfile } from "@/hooks/store/user";
// types // types
import type { IProjectEpicsFilter } from "@/plane-web/store/issue/epic";
import type { ICycleIssuesFilter } from "@/store/issue/cycle"; import type { ICycleIssuesFilter } from "@/store/issue/cycle";
import type { IModuleIssuesFilter } from "@/store/issue/module"; import type { IModuleIssuesFilter } from "@/store/issue/module";
import type { IProjectIssuesFilter } from "@/store/issue/project"; import type { IProjectIssuesFilter } from "@/store/issue/project";

View file

@ -6,7 +6,7 @@
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// components // components
import { EUserPermissions, EUserPermissionsLevel, WORK_ITEM_TRACKER_ELEMENTS } from "@plane/constants"; import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { EmptyStateDetailed } from "@plane/propel/empty-state"; import { EmptyStateDetailed } from "@plane/propel/empty-state";
import { EIssuesStoreType } from "@plane/types"; import { EIssuesStoreType } from "@plane/types";
// hooks // hooks

View file

@ -11,7 +11,6 @@ import { usePopper } from "react-popper";
import { Popover, Transition } from "@headlessui/react"; import { Popover, Transition } from "@headlessui/react";
// ui // ui
import { Button } from "@plane/propel/button"; import { Button } from "@plane/propel/button";
import { ChevronUpIcon } from "@plane/propel/icons";
type Props = { type Props = {
children: React.ReactNode; children: React.ReactNode;

View file

@ -6,8 +6,6 @@
import type { MutableRefObject } from "react"; import type { MutableRefObject } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// i18n
import { useTranslation } from "@plane/i18n";
import type { import type {
GroupByColumnTypes, GroupByColumnTypes,
IGroupByColumn, IGroupByColumn,
@ -100,7 +98,6 @@ export const KanBan = observer(function KanBan(props: IKanBan) {
isEpic = false, isEpic = false,
} = props; } = props;
// i18n // i18n
const { t } = useTranslation();
// store hooks // store hooks
const storeType = useIssueStoreType(); const storeType = useIssueStoreType();
const issueKanBanView = useKanbanView(); const issueKanBanView = useKanbanView();

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { Circle } from "lucide-react"; import { Circle } from "lucide-react";

View file

@ -4,7 +4,7 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC, MutableRefObject } from "react"; import type { MutableRefObject } from "react";
import React, { useEffect, useRef, useState } from "react"; import React, { useEffect, useRef, useState } from "react";
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine"; import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter"; import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";

View file

@ -4,7 +4,7 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC, MutableRefObject } from "react"; import type { MutableRefObject } from "react";
// components // components
import type { TIssue, IIssueDisplayProperties, TIssueMap, TGroupedIssues } from "@plane/types"; import type { TIssue, IIssueDisplayProperties, TIssueMap, TGroupedIssues } from "@plane/types";
// hooks // hooks

View file

@ -83,7 +83,7 @@ export const HeaderGroupByCard = observer(function HeaderGroupByCard(props: IHea
title: "Success!", title: "Success!",
message: "Work items added to the cycle successfully.", message: "Work items added to the cycle successfully.",
}); });
} catch (error) { } catch (_error) {
setToast({ setToast({
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,
title: "Error!", title: "Error!",

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// local imports // local imports
import { ArchivedIssueQuickActions } from "../../quick-action-dropdowns"; import { ArchivedIssueQuickActions } from "../../quick-action-dropdowns";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants"; import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
// plane imports // plane imports

View file

@ -7,7 +7,7 @@
import { useState } from "react"; import { useState } from "react";
import { omit } from "lodash-es"; import { omit } from "lodash-es";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation"; import { useParams } from "next/navigation";
import { Ellipsis } from "lucide-react"; import { Ellipsis } from "lucide-react";
// plane imports // plane imports
import { ARCHIVABLE_STATE_GROUPS, EUserPermissions, EUserPermissionsLevel } from "@plane/constants"; import { ARCHIVABLE_STATE_GROUPS, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
@ -60,7 +60,6 @@ export const WorkItemDetailQuickActions = observer(function WorkItemDetailQuickA
} = props; } = props;
// router // router
const { workspaceSlug } = useParams(); const { workspaceSlug } = useParams();
const pathname = usePathname();
// states // states
const [createUpdateIssueModal, setCreateUpdateIssueModal] = useState(false); const [createUpdateIssueModal, setCreateUpdateIssueModal] = useState(false);
const [issueToEdit, setIssueToEdit] = useState<TIssue | undefined>(undefined); const [issueToEdit, setIssueToEdit] = useState<TIssue | undefined>(undefined);

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import type { TQuickAddIssueForm } from "../root"; import type { TQuickAddIssueForm } from "../root";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
import { cn } from "@plane/utils"; import { cn } from "@plane/utils";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
import type { TQuickAddIssueForm } from "../root"; import type { TQuickAddIssueForm } from "../root";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
import type { TQuickAddIssueForm } from "../root"; import type { TQuickAddIssueForm } from "../root";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";
import type { TQuickAddIssueForm } from "../root"; import type { TQuickAddIssueForm } from "../root";

View file

@ -14,7 +14,6 @@ import { EmptyStateDetailed } from "@plane/propel/empty-state";
import type { EIssueLayoutTypes } from "@plane/types"; import type { EIssueLayoutTypes } from "@plane/types";
import { EIssuesStoreType, STATIC_VIEW_TYPES } from "@plane/types"; import { EIssuesStoreType, STATIC_VIEW_TYPES } from "@plane/types";
// assets // assets
import emptyView from "@/app/assets/empty-state/view.svg?url";
// components // components
import { IssuePeekOverview } from "@/components/issues/peek-overview"; import { IssuePeekOverview } from "@/components/issues/peek-overview";
import { WorkspaceActiveLayout } from "@/components/views/helper"; import { WorkspaceActiveLayout } from "@/components/views/helper";

View file

@ -4,7 +4,7 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { CSSProperties, FC } from "react"; import type { CSSProperties } from "react";
import { extractInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item"; import { extractInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item";
import { clone, isNil, pull, uniq, concat } from "lodash-es"; import { clone, isNil, pull, uniq, concat } from "lodash-es";
import scrollIntoView from "smooth-scroll-into-view-if-needed"; import scrollIntoView from "smooth-scroll-into-view-if-needed";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useState, useRef, useEffect } from "react"; import React, { useState, useRef, useEffect } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
@ -17,7 +16,6 @@ import { useTranslation } from "@plane/i18n";
import { Button } from "@plane/propel/button"; import { Button } from "@plane/propel/button";
import { TOAST_TYPE, setToast } from "@plane/propel/toast"; import { TOAST_TYPE, setToast } from "@plane/propel/toast";
import type { TIssue, TWorkspaceDraftIssue } from "@plane/types"; import type { TIssue, TWorkspaceDraftIssue } from "@plane/types";
import { EIssuesStoreType } from "@plane/types";
// hooks // hooks
import { ToggleSwitch } from "@plane/ui"; import { ToggleSwitch } from "@plane/ui";
import { import {

View file

@ -10,7 +10,7 @@ import type { TContextMenuItem } from "@plane/ui";
import { CustomMenu } from "@plane/ui"; import { CustomMenu } from "@plane/ui";
import { copyUrlToClipboard, cn } from "@plane/utils"; import { copyUrlToClipboard, cn } from "@plane/utils";
import { useLayoutMenuItems } from "@/components/common/quick-actions-helper"; import { useLayoutMenuItems } from "@/components/common/quick-actions-helper";
import { Ellipsis, MoreHorizontal } from "lucide-react"; import { Ellipsis } from "lucide-react";
import { IconButton } from "@plane/propel/icon-button"; import { IconButton } from "@plane/propel/icon-button";
type Props = { type Props = {

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { MoveRight } from "lucide-react"; import { MoveRight } from "lucide-react";
import { Tooltip } from "@plane/propel/tooltip"; import { Tooltip } from "@plane/propel/tooltip";
// assets // assets

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useEffect } from "react"; import { useEffect } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { MoveRight } from "lucide-react"; import { MoveRight } from "lucide-react";
import { Tooltip } from "@plane/propel/tooltip"; import { Tooltip } from "@plane/propel/tooltip";
import { Loader } from "@plane/ui"; import { Loader } from "@plane/ui";

View file

@ -83,7 +83,7 @@ export const IssuePeekOverview = observer(function IssuePeekOverview(props: IWor
fetchActivities(workspaceSlug, projectId, issueId); fetchActivities(workspaceSlug, projectId, issueId);
return; return;
}) })
.catch((error) => { .catch((_error) => {
setToast({ setToast({
title: t("toast.error"), title: t("toast.error"),
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useRef, useState } from "react"; import { useRef, useState } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { createPortal } from "react-dom"; import { createPortal } from "react-dom";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// plane imports // plane imports

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React from "react"; import React from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
// components // components

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { useState, useEffect, useCallback, useRef } from "react"; import { useState, useEffect, useCallback, useRef } from "react";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n"; import { useTranslation } from "@plane/i18n";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import React, { useRef, useState } from "react"; import React, { useRef, useState } from "react";
import { omit } from "lodash-es"; import { omit } from "lodash-es";
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { Fragment, useState } from "react"; import { Fragment, useState } from "react";
// components // components
import { observer } from "mobx-react"; import { observer } from "mobx-react";

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
import type { FC } from "react";
import { range } from "lodash-es"; import { range } from "lodash-es";
// components // components
import { ListLoaderItemRow } from "@/components/ui/loader/layouts/list-layout-loader"; import { ListLoaderItemRow } from "@/components/ui/loader/layouts/list-layout-loader";