diff --git a/apps/web/core/components/account/auth-forms/email.tsx b/apps/web/core/components/account/auth-forms/email.tsx index 8abddb42efa..2138753aaf6 100644 --- a/apps/web/core/components/account/auth-forms/email.tsx +++ b/apps/web/core/components/account/auth-forms/email.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import type { FC, FormEvent } from "react"; +import type { FormEvent } from "react"; import { useMemo, useRef, useState } from "react"; import { observer } from "mobx-react"; // icons diff --git a/apps/web/core/components/account/auth-forms/password.tsx b/apps/web/core/components/account/auth-forms/password.tsx index 6fed9e88893..8ebe3c827d3 100644 --- a/apps/web/core/components/account/auth-forms/password.tsx +++ b/apps/web/core/components/account/auth-forms/password.tsx @@ -10,7 +10,7 @@ import Link from "next/link"; // icons import { Eye, EyeOff, Info, XCircle } from "lucide-react"; // plane imports -import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_EVENTS, AUTH_TRACKER_ELEMENTS } from "@plane/constants"; +import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_ELEMENTS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { Button } from "@plane/propel/button"; import { CloseIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/account/auth-forms/unique-code.tsx b/apps/web/core/components/account/auth-forms/unique-code.tsx index aa65175b49d..9c4b8a6c189 100644 --- a/apps/web/core/components/account/auth-forms/unique-code.tsx +++ b/apps/web/core/components/account/auth-forms/unique-code.tsx @@ -41,7 +41,7 @@ const defaultValues: TUniqueCodeFormValues = { }; export function AuthUniqueCodeForm(props: TAuthUniqueCodeForm) { - const { mode, email, handleEmailClear, generateEmailUniqueCode, isExistingEmail, nextPath } = props; + const { mode, email, handleEmailClear, generateEmailUniqueCode, nextPath } = props; // derived values const defaultResetTimerValue = 5; // states diff --git a/apps/web/core/components/analytics/analytics-section-wrapper.tsx b/apps/web/core/components/analytics/analytics-section-wrapper.tsx index 9a3af1171b8..d46ce74b46b 100644 --- a/apps/web/core/components/analytics/analytics-section-wrapper.tsx +++ b/apps/web/core/components/analytics/analytics-section-wrapper.tsx @@ -16,7 +16,7 @@ type Props = { }; function AnalyticsSectionWrapper(props: Props) { - const { title, children, className, subtitle, actions, headerClassName } = props; + const { title, children, className, actions, headerClassName } = props; return (
diff --git a/apps/web/core/components/analytics/insight-table/data-table.tsx b/apps/web/core/components/analytics/insight-table/data-table.tsx index 9c24d1aa572..a0f5213a693 100644 --- a/apps/web/core/components/analytics/insight-table/data-table.tsx +++ b/apps/web/core/components/analytics/insight-table/data-table.tsx @@ -38,10 +38,10 @@ interface DataTableProps { } export function DataTable({ columns, data, searchPlaceholder, actions }: DataTableProps) { - const [rowSelection, setRowSelection] = React.useState({}); + const [rowSelection, _setRowSelection] = React.useState({}); const [columnVisibility, setColumnVisibility] = React.useState({}); const [columnFilters, setColumnFilters] = React.useState([]); - const [sorting, setSorting] = React.useState([]); + const [sorting, _setSorting] = React.useState([]); const { t } = useTranslation(); const inputRef = React.useRef(null); const [isSearchOpen, setIsSearchOpen] = React.useState(false); diff --git a/apps/web/core/components/analytics/work-items/priority-chart.tsx b/apps/web/core/components/analytics/work-items/priority-chart.tsx index f5ba27d6105..942285cab20 100644 --- a/apps/web/core/components/analytics/work-items/priority-chart.tsx +++ b/apps/web/core/components/analytics/work-items/priority-chart.tsx @@ -31,6 +31,7 @@ import { ChartLoader } from "../loaders"; import { generateBarColor } from "./utils"; declare module "@tanstack/react-table" { + // eslint-disable-next-line @typescript-eslint/no-unused-vars interface ColumnMeta { export: { key: string; diff --git a/apps/web/core/components/analytics/work-items/workitems-insight-table.tsx b/apps/web/core/components/analytics/work-items/workitems-insight-table.tsx index d63b84da8e1..52f3abd66ca 100644 --- a/apps/web/core/components/analytics/work-items/workitems-insight-table.tsx +++ b/apps/web/core/components/analytics/work-items/workitems-insight-table.tsx @@ -29,6 +29,7 @@ import { InsightTable } from "../insight-table"; const analyticsService = new AnalyticsService(); declare module "@tanstack/react-table" { + // eslint-disable-next-line @typescript-eslint/no-unused-vars interface ColumnMeta { export: { key: string; diff --git a/apps/web/core/components/archives/archive-tabs-list.tsx b/apps/web/core/components/archives/archive-tabs-list.tsx index 96396b9a930..ea21842013e 100644 --- a/apps/web/core/components/archives/archive-tabs-list.tsx +++ b/apps/web/core/components/archives/archive-tabs-list.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; import { useParams, usePathname } from "next/navigation"; diff --git a/apps/web/core/components/comments/comment-create.tsx b/apps/web/core/components/comments/comment-create.tsx index f727fc78962..d230a5be93e 100644 --- a/apps/web/core/components/comments/comment-create.tsx +++ b/apps/web/core/components/comments/comment-create.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useRef, useState } from "react"; import { observer } from "mobx-react"; import { useForm, Controller } from "react-hook-form"; diff --git a/apps/web/core/components/comments/comment-reaction.tsx b/apps/web/core/components/comments/comment-reaction.tsx index e9d1c931b09..709de31e81b 100644 --- a/apps/web/core/components/comments/comment-reaction.tsx +++ b/apps/web/core/components/comments/comment-reaction.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useMemo, useState } from "react"; import { observer } from "mobx-react"; // plane imports @@ -12,7 +11,6 @@ import { stringToEmoji } from "@plane/propel/emoji-icon-picker"; import { EmojiReactionGroup, EmojiReactionPicker } from "@plane/propel/emoji-reaction"; import type { EmojiReactionType } from "@plane/propel/emoji-reaction"; import type { TCommentsOperations, TIssueComment } from "@plane/types"; -import { cn } from "@plane/utils"; // helpers // local imports diff --git a/apps/web/core/components/common/activity/activity-item.tsx b/apps/web/core/components/common/activity/activity-item.tsx index c4b3e363aad..0cc6a01f5ff 100644 --- a/apps/web/core/components/common/activity/activity-item.tsx +++ b/apps/web/core/components/common/activity/activity-item.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import type { TProjectActivity } from "@/plane-web/types"; @@ -18,7 +17,7 @@ type TActivityItem = { }; export const ActivityItem = observer(function ActivityItem(props: TActivityItem) { - const { activity, showProject = true, ends } = props; + const { activity, ends } = props; if (!activity) return null; diff --git a/apps/web/core/components/common/activity/user.tsx b/apps/web/core/components/common/activity/user.tsx index 9254ad3eb8e..1ba3d03b750 100644 --- a/apps/web/core/components/common/activity/user.tsx +++ b/apps/web/core/components/common/activity/user.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; // types diff --git a/apps/web/core/components/common/count-chip.tsx b/apps/web/core/components/common/count-chip.tsx index 113dc4264cd..8b920415195 100644 --- a/apps/web/core/components/common/count-chip.tsx +++ b/apps/web/core/components/common/count-chip.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; // import { cn } from "@plane/utils"; diff --git a/apps/web/core/components/common/pro-icon.tsx b/apps/web/core/components/common/pro-icon.tsx index 30e7ea97191..474ddd83676 100644 --- a/apps/web/core/components/common/pro-icon.tsx +++ b/apps/web/core/components/common/pro-icon.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Crown } from "lucide-react"; // helpers import { cn } from "@plane/utils"; diff --git a/apps/web/core/components/core/list/list-root.tsx b/apps/web/core/components/core/list/list-root.tsx index a965478597a..d81f2daeec2 100644 --- a/apps/web/core/components/core/list/list-root.tsx +++ b/apps/web/core/components/core/list/list-root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; import { Row, ERowVariant } from "@plane/ui"; diff --git a/apps/web/core/components/core/theme/theme-switch.tsx b/apps/web/core/components/core/theme/theme-switch.tsx index 3560e997840..b9de9bc5dc5 100644 --- a/apps/web/core/components/core/theme/theme-switch.tsx +++ b/apps/web/core/components/core/theme/theme-switch.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; // plane imports import type { I_THEME_OPTION } from "@plane/constants"; import { THEME_OPTIONS } from "@plane/constants"; diff --git a/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx b/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx index 678fe682d50..f6ea00ba6c6 100644 --- a/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx +++ b/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Fragment, useCallback, useRef, useState } from "react"; import { isEmpty } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/cycles/active-cycle/productivity.tsx b/apps/web/core/components/cycles/active-cycle/productivity.tsx index 21720abc5c3..c3ebdfcbe8f 100644 --- a/apps/web/core/components/cycles/active-cycle/productivity.tsx +++ b/apps/web/core/components/cycles/active-cycle/productivity.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Fragment } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; diff --git a/apps/web/core/components/cycles/active-cycle/progress.tsx b/apps/web/core/components/cycles/active-cycle/progress.tsx index d781920b6c3..4688e9dc5bc 100644 --- a/apps/web/core/components/cycles/active-cycle/progress.tsx +++ b/apps/web/core/components/cycles/active-cycle/progress.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { useTheme } from "next-themes"; // plane imports diff --git a/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx b/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx index 4e4e579b875..738856d20ea 100644 --- a/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx +++ b/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useMemo } from "react"; import { isEmpty } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx b/apps/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx index 65137162603..9c8ba8ac2ab 100644 --- a/apps/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx +++ b/apps/web/core/components/cycles/analytics-sidebar/sidebar-details.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; import { isEmpty } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx b/apps/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx index e2a825ccc24..05cdb8ebbb5 100644 --- a/apps/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx +++ b/apps/web/core/components/cycles/analytics-sidebar/sidebar-header.tsx @@ -76,7 +76,7 @@ export const CycleSidebarHeader = observer(function CycleSidebarHeader(props: Pr try { const res = await cycleService.cycleDateCheck(workspaceSlug, projectId, payload); return res.status; - } catch (err) { + } catch (_err) { return false; } }; diff --git a/apps/web/core/components/cycles/archived-cycles/view.tsx b/apps/web/core/components/cycles/archived-cycles/view.tsx index 48a1f6a097a..2153fb0c969 100644 --- a/apps/web/core/components/cycles/archived-cycles/view.tsx +++ b/apps/web/core/components/cycles/archived-cycles/view.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // assets import AllFiltersImage from "@/app/assets/empty-state/cycle/all-filters.svg?url"; diff --git a/apps/web/core/components/cycles/cycles-view.tsx b/apps/web/core/components/cycles/cycles-view.tsx index 223c3a959f4..d0762125fee 100644 --- a/apps/web/core/components/cycles/cycles-view.tsx +++ b/apps/web/core/components/cycles/cycles-view.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // components import { useTranslation } from "@plane/i18n"; diff --git a/apps/web/core/components/cycles/list/cycle-list-group-header.tsx b/apps/web/core/components/cycles/list/cycle-list-group-header.tsx index 903e1086be9..9b3578639af 100644 --- a/apps/web/core/components/cycles/list/cycle-list-group-header.tsx +++ b/apps/web/core/components/cycles/list/cycle-list-group-header.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; // types import { CycleGroupIcon, ChevronDownIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/cycles/list/cycle-list-project-group-header.tsx b/apps/web/core/components/cycles/list/cycle-list-project-group-header.tsx index 9e6f5c134fa..3d836dac0b4 100644 --- a/apps/web/core/components/cycles/list/cycle-list-project-group-header.tsx +++ b/apps/web/core/components/cycles/list/cycle-list-project-group-header.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; import { observer } from "mobx-react"; import { Logo } from "@plane/propel/emoji-icon-picker"; diff --git a/apps/web/core/components/cycles/list/root.tsx b/apps/web/core/components/cycles/list/root.tsx index 0b2a4ed044f..07351decfbb 100644 --- a/apps/web/core/components/cycles/list/root.tsx +++ b/apps/web/core/components/cycles/list/root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; import { observer } from "mobx-react"; import { Disclosure } from "@headlessui/react"; diff --git a/apps/web/core/components/cycles/modal.tsx b/apps/web/core/components/cycles/modal.tsx index 2128bc3461e..582489ced59 100644 --- a/apps/web/core/components/cycles/modal.tsx +++ b/apps/web/core/components/cycles/modal.tsx @@ -50,7 +50,7 @@ export function CycleCreateUpdateModal(props: CycleModalProps) { const selectedProjectId = payload.project_id ?? projectId.toString(); await createCycle(workspaceSlug, selectedProjectId, payload) - .then((res) => { + .then((_res) => { // mutate when the current cycle creation is active if (payload.start_date && payload.end_date) { const currentDate = new Date(); @@ -81,7 +81,7 @@ export function CycleCreateUpdateModal(props: CycleModalProps) { const selectedProjectId = payload.project_id ?? projectId.toString(); await updateCycleDetails(workspaceSlug, selectedProjectId, cycleId, payload) - .then((res) => { + .then((_res) => { setToast({ type: TOAST_TYPE.SUCCESS, title: "Success!", diff --git a/apps/web/core/components/empty-state/section-empty-state-root.tsx b/apps/web/core/components/empty-state/section-empty-state-root.tsx index cc4acdffb48..3d0a05aa3d2 100644 --- a/apps/web/core/components/empty-state/section-empty-state-root.tsx +++ b/apps/web/core/components/empty-state/section-empty-state-root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { cn } from "@plane/utils"; type Props = { diff --git a/apps/web/core/components/estimates/create/modal.tsx b/apps/web/core/components/estimates/create/modal.tsx index 02bbaced9a2..518f6665095 100644 --- a/apps/web/core/components/estimates/create/modal.tsx +++ b/apps/web/core/components/estimates/create/modal.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useEffect, useMemo, useState } from "react"; import { observer } from "mobx-react"; // plane imports diff --git a/apps/web/core/components/estimates/delete/modal.tsx b/apps/web/core/components/estimates/delete/modal.tsx index 8181fc88814..e6b39fcdec2 100644 --- a/apps/web/core/components/estimates/delete/modal.tsx +++ b/apps/web/core/components/estimates/delete/modal.tsx @@ -48,7 +48,7 @@ export const DeleteEstimateModal = observer(function DeleteEstimateModal(props: message: "Estimate has been removed from your project.", }); handleClose(); - } catch (error) { + } catch (_error) { setButtonLoader(false); setToast({ type: TOAST_TYPE.ERROR, diff --git a/apps/web/core/components/estimates/estimate-disable-switch.tsx b/apps/web/core/components/estimates/estimate-disable-switch.tsx index 7553ce0757d..13bf7ce663a 100644 --- a/apps/web/core/components/estimates/estimate-disable-switch.tsx +++ b/apps/web/core/components/estimates/estimate-disable-switch.tsx @@ -44,7 +44,7 @@ export const EstimateDisableSwitch = observer(function EstimateDisableSwitch(pro ? t("project_settings.estimates.toasts.disabled.success.message") : t("project_settings.estimates.toasts.enabled.success.message"), }); - } catch (err) { + } catch (_err) { setToast({ type: TOAST_TYPE.ERROR, title: t("project_settings.estimates.toasts.disabled.error.title"), diff --git a/apps/web/core/components/estimates/estimate-list.tsx b/apps/web/core/components/estimates/estimate-list.tsx index 0a428e8f711..6e919c55715 100644 --- a/apps/web/core/components/estimates/estimate-list.tsx +++ b/apps/web/core/components/estimates/estimate-list.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // local imports import { EstimateListItem } from "./estimate-list-item"; diff --git a/apps/web/core/components/estimates/estimate-search.tsx b/apps/web/core/components/estimates/estimate-search.tsx index 38a6439f18d..0b05f6716c2 100644 --- a/apps/web/core/components/estimates/estimate-search.tsx +++ b/apps/web/core/components/estimates/estimate-search.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; export const EstimateSearch = observer(function EstimateSearch() { diff --git a/apps/web/core/components/estimates/inputs/number-input.tsx b/apps/web/core/components/estimates/inputs/number-input.tsx index a93626df1cb..3e4d30b73d6 100644 --- a/apps/web/core/components/estimates/inputs/number-input.tsx +++ b/apps/web/core/components/estimates/inputs/number-input.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useTranslation } from "@plane/i18n"; type TEstimateNumberInputProps = { value?: number; diff --git a/apps/web/core/components/estimates/inputs/root.tsx b/apps/web/core/components/estimates/inputs/root.tsx index 1c38f41cfeb..86b743ff7b2 100644 --- a/apps/web/core/components/estimates/inputs/root.tsx +++ b/apps/web/core/components/estimates/inputs/root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; // plane imports import type { TEstimateSystemKeys } from "@plane/types"; import { EEstimateSystem } from "@plane/types"; diff --git a/apps/web/core/components/estimates/inputs/text-input.tsx b/apps/web/core/components/estimates/inputs/text-input.tsx index 03dd0b50d4a..50fe55da86e 100644 --- a/apps/web/core/components/estimates/inputs/text-input.tsx +++ b/apps/web/core/components/estimates/inputs/text-input.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useTranslation } from "@plane/i18n"; type TEstimateTextInputProps = { value?: string; diff --git a/apps/web/core/components/estimates/loader-screen.tsx b/apps/web/core/components/estimates/loader-screen.tsx index 79f3b03947b..d858df1d971 100644 --- a/apps/web/core/components/estimates/loader-screen.tsx +++ b/apps/web/core/components/estimates/loader-screen.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Loader } from "@plane/ui"; export function EstimateLoaderScreen() { diff --git a/apps/web/core/components/estimates/points/create-root.tsx b/apps/web/core/components/estimates/points/create-root.tsx index b309b2890c7..ad3c57e9fd7 100644 --- a/apps/web/core/components/estimates/points/create-root.tsx +++ b/apps/web/core/components/estimates/points/create-root.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import type { Dispatch, FC, SetStateAction } from "react"; +import type { Dispatch, SetStateAction } from "react"; import { useCallback, useState } from "react"; import { observer } from "mobx-react"; // plane imports diff --git a/apps/web/core/components/estimates/points/create.tsx b/apps/web/core/components/estimates/points/create.tsx index a4fd55ad183..50aced9cd56 100644 --- a/apps/web/core/components/estimates/points/create.tsx +++ b/apps/web/core/components/estimates/points/create.tsx @@ -166,12 +166,6 @@ export const EstimatePointCreate = observer(function EstimatePointCreate(props: handleEstimatePointError(estimateInputValue, t("project_settings.estimates.validation.empty")); }; - // derived values - const inputProps = { - type: "text", - maxlength: MAX_ESTIMATE_POINT_INPUT_LENGTH, - }; - return (
) => { try { await inboxIssue.updateIssue(data); - } catch (error) { + } catch (_error) { setToast({ title: "Work item update failed", type: TOAST_TYPE.ERROR, diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/date.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/date.tsx index 5e13689475f..53cf70989bd 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/date.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/date.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { PAST_DURATION_FILTER_OPTIONS } from "@plane/constants"; import { CloseIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/label.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/label.tsx index 32b6f0f20e0..1fd33cbe80c 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/label.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/label.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // hooks import { CloseIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/member.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/member.tsx index 724260b2426..4148f4af3f0 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/member.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/member.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // plane types diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx index a588b37df6c..38a12602a0d 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/priority.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { ISSUE_PRIORITIES } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/root.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/root.tsx index 29b158d1065..99283e6c2c9 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/root.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // plane imports import { Header, EHeaderVariant } from "@plane/ui"; diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/state.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/state.tsx index 4de55f4ecff..f8b94c9bcf0 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/state.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/state.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { EIconSize } from "@plane/constants"; import { StateGroupIcon, CloseIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/inbox/inbox-filter/applied-filters/status.tsx b/apps/web/core/components/inbox/inbox-filter/applied-filters/status.tsx index 01543e59ab3..ccc7c31ae7a 100644 --- a/apps/web/core/components/inbox/inbox-filter/applied-filters/status.tsx +++ b/apps/web/core/components/inbox/inbox-filter/applied-filters/status.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { INBOX_STATUS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/date.tsx b/apps/web/core/components/inbox/inbox-filter/filters/date.tsx index 84ae0ffdef0..51fbbe6d495 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/date.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/date.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { concat, uniq } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/filter-selection.tsx b/apps/web/core/components/inbox/inbox-filter/filters/filter-selection.tsx index 2e4e57ff1a7..99ae144cd0c 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/filter-selection.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/filter-selection.tsx @@ -4,21 +4,18 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { SearchIcon, CloseIcon } from "@plane/propel/icons"; // hooks import { useLabel } from "@/hooks/store/use-label"; import { useMember } from "@/hooks/store/use-member"; -import { useProjectState } from "@/hooks/store/use-project-state"; import { usePlatformOS } from "@/hooks/use-platform-os"; // local imports import { FilterDate } from "./date"; import { FilterLabels } from "./labels"; import { FilterMember } from "./members"; import { FilterPriority } from "./priority"; -import { FilterState } from "./state"; import { FilterStatus } from "./status"; export const InboxIssueFilterSelection = observer(function InboxIssueFilterSelection() { @@ -28,7 +25,6 @@ export const InboxIssueFilterSelection = observer(function InboxIssueFilterSelec project: { projectMemberIds }, } = useMember(); const { projectLabels } = useLabel(); - const { projectStates } = useProjectState(); // states const [filtersSearchQuery, setFiltersSearchQuery] = useState(""); diff --git a/apps/web/core/components/inbox/inbox-filter/filters/labels.tsx b/apps/web/core/components/inbox/inbox-filter/filters/labels.tsx index e45dae656b6..23e338b1d31 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/labels.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/labels.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import type { IIssueLabel } from "@plane/types"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/members.tsx b/apps/web/core/components/inbox/inbox-filter/filters/members.tsx index c6ff9a57198..d555aa81b85 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/members.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/members.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useMemo, useState } from "react"; import { sortBy } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/priority.tsx b/apps/web/core/components/inbox/inbox-filter/filters/priority.tsx index a88d10a3ca1..5272e368b24 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/priority.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/priority.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { ISSUE_PRIORITIES } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/state.tsx b/apps/web/core/components/inbox/inbox-filter/filters/state.tsx index 08d125f645e..4a4af021fce 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/state.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/state.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { EIconSize } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/inbox-filter/filters/status.tsx b/apps/web/core/components/inbox/inbox-filter/filters/status.tsx index 3f1955f4abe..e08a71334ac 100644 --- a/apps/web/core/components/inbox/inbox-filter/filters/status.tsx +++ b/apps/web/core/components/inbox/inbox-filter/filters/status.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; // types diff --git a/apps/web/core/components/inbox/inbox-filter/root.tsx b/apps/web/core/components/inbox/inbox-filter/root.tsx index 848e2f4d290..2413ccc382f 100644 --- a/apps/web/core/components/inbox/inbox-filter/root.tsx +++ b/apps/web/core/components/inbox/inbox-filter/root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { ListFilter } from "lucide-react"; import { getButtonStyling } from "@plane/propel/button"; // plane imports diff --git a/apps/web/core/components/inbox/inbox-filter/sorting/order-by.tsx b/apps/web/core/components/inbox/inbox-filter/sorting/order-by.tsx index 599a1ce9cc9..ad2e720c715 100644 --- a/apps/web/core/components/inbox/inbox-filter/sorting/order-by.tsx +++ b/apps/web/core/components/inbox/inbox-filter/sorting/order-by.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import { ArrowDownWideNarrow, ArrowUpWideNarrow } from "lucide-react"; import { INBOX_ISSUE_ORDER_BY_OPTIONS, INBOX_ISSUE_SORT_BY_OPTIONS } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/modals/create-modal/issue-description.tsx b/apps/web/core/components/inbox/modals/create-modal/issue-description.tsx index f67f9b25d4d..ce3961b0892 100644 --- a/apps/web/core/components/inbox/modals/create-modal/issue-description.tsx +++ b/apps/web/core/components/inbox/modals/create-modal/issue-description.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import type { FC, RefObject } from "react"; +import type { RefObject } from "react"; import { observer } from "mobx-react"; // plane imports import { ETabIndices } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/modals/create-modal/issue-properties.tsx b/apps/web/core/components/inbox/modals/create-modal/issue-properties.tsx index b64a64b0f16..6d6c80e937c 100644 --- a/apps/web/core/components/inbox/modals/create-modal/issue-properties.tsx +++ b/apps/web/core/components/inbox/modals/create-modal/issue-properties.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { ETabIndices } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/modals/create-modal/issue-title.tsx b/apps/web/core/components/inbox/modals/create-modal/issue-title.tsx index 3c8c809ec94..49d8178fb53 100644 --- a/apps/web/core/components/inbox/modals/create-modal/issue-title.tsx +++ b/apps/web/core/components/inbox/modals/create-modal/issue-title.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // plane imports import { ETabIndices } from "@plane/constants"; diff --git a/apps/web/core/components/inbox/modals/create-modal/modal.tsx b/apps/web/core/components/inbox/modals/create-modal/modal.tsx index 43f01251d86..85b8a14c0ea 100644 --- a/apps/web/core/components/inbox/modals/create-modal/modal.tsx +++ b/apps/web/core/components/inbox/modals/create-modal/modal.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; // plane imports import { EModalPosition, EModalWidth, ModalCore } from "@plane/ui"; diff --git a/apps/web/core/components/inbox/sidebar/inbox-list-item.tsx b/apps/web/core/components/inbox/sidebar/inbox-list-item.tsx index 216f7936255..db8d4240f9f 100644 --- a/apps/web/core/components/inbox/sidebar/inbox-list-item.tsx +++ b/apps/web/core/components/inbox/sidebar/inbox-list-item.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import type { FC, MouseEvent } from "react"; +import type { MouseEvent } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; import { useSearchParams } from "next/navigation"; diff --git a/apps/web/core/components/inbox/sidebar/inbox-list.tsx b/apps/web/core/components/inbox/sidebar/inbox-list.tsx index 886171cda42..ee5ddd3ae6b 100644 --- a/apps/web/core/components/inbox/sidebar/inbox-list.tsx +++ b/apps/web/core/components/inbox/sidebar/inbox-list.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Fragment } from "react"; import { observer } from "mobx-react"; // local imports diff --git a/apps/web/core/components/instance/maintenance-view.tsx b/apps/web/core/components/instance/maintenance-view.tsx index 48ed52f3426..eaa3bba4f9b 100644 --- a/apps/web/core/components/instance/maintenance-view.tsx +++ b/apps/web/core/components/instance/maintenance-view.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useTheme } from "next-themes"; // assets import maintenanceModeDarkModeImage from "@/app/assets/instance/maintenance-mode-dark.svg?url"; diff --git a/apps/web/core/components/instance/not-ready-view.tsx b/apps/web/core/components/instance/not-ready-view.tsx index 5625a77e53f..97a19bef80b 100644 --- a/apps/web/core/components/instance/not-ready-view.tsx +++ b/apps/web/core/components/instance/not-ready-view.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import Link from "next/link"; import { useTheme } from "next-themes"; import { GOD_MODE_URL } from "@plane/constants"; diff --git a/apps/web/core/components/labels/create-update-label-inline.tsx b/apps/web/core/components/labels/create-update-label-inline.tsx index 04660487197..6be483cd1a0 100644 --- a/apps/web/core/components/labels/create-update-label-inline.tsx +++ b/apps/web/core/components/labels/create-update-label-inline.tsx @@ -11,7 +11,7 @@ import type { SubmitHandler } from "react-hook-form"; import { Controller, useForm } from "react-hook-form"; import { Popover, Transition } from "@headlessui/react"; // plane imports -import { getRandomLabelColor, LABEL_COLOR_OPTIONS, PROJECT_SETTINGS_TRACKER_EVENTS } from "@plane/constants"; +import { getRandomLabelColor, LABEL_COLOR_OPTIONS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { Button } from "@plane/propel/button"; import { TOAST_TYPE, setToast } from "@plane/propel/toast"; @@ -91,7 +91,7 @@ export const CreateUpdateLabelInline = observer( await labelOperationsCallbacks .createLabel(formData) - .then((res) => { + .then((_res) => { handleClose(); reset(defaultValues); }) @@ -111,7 +111,7 @@ export const CreateUpdateLabelInline = observer( await labelOperationsCallbacks .updateLabel(labelToUpdate.id, formData) - .then((res) => { + .then((_res) => { reset(defaultValues); handleClose(); }) diff --git a/apps/web/core/components/modules/analytics-sidebar/issue-progress.tsx b/apps/web/core/components/modules/analytics-sidebar/issue-progress.tsx index 3feecffeba6..f703ddf5816 100644 --- a/apps/web/core/components/modules/analytics-sidebar/issue-progress.tsx +++ b/apps/web/core/components/modules/analytics-sidebar/issue-progress.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { Fragment, useMemo, useState } from "react"; import { observer } from "mobx-react"; import { useSearchParams } from "next/navigation"; @@ -112,7 +111,7 @@ export const ModuleAnalyticsProgress = observer(function ModuleAnalyticsProgress await fetchModuleDetails(workspaceSlug, projectId, moduleId); } setLoader(false); - } catch (error) { + } catch (_error) { setLoader(false); setPlotType(moduleId, plotType); } diff --git a/apps/web/core/components/modules/archived-modules/header.tsx b/apps/web/core/components/modules/archived-modules/header.tsx index 4b58e4bb920..a15c431df2b 100644 --- a/apps/web/core/components/modules/archived-modules/header.tsx +++ b/apps/web/core/components/modules/archived-modules/header.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useCallback, useRef, useState } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; diff --git a/apps/web/core/components/modules/archived-modules/view.tsx b/apps/web/core/components/modules/archived-modules/view.tsx index bea8c597fd7..f7a07b4685b 100644 --- a/apps/web/core/components/modules/archived-modules/view.tsx +++ b/apps/web/core/components/modules/archived-modules/view.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // assets import AllFiltersImage from "@/app/assets/empty-state/module/all-filters.svg?url"; diff --git a/apps/web/core/components/modules/links/create-update-modal.tsx b/apps/web/core/components/modules/links/create-update-modal.tsx index 9caa018023a..b99254aefd6 100644 --- a/apps/web/core/components/modules/links/create-update-modal.tsx +++ b/apps/web/core/components/modules/links/create-update-modal.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; // plane types diff --git a/apps/web/core/components/modules/modal.tsx b/apps/web/core/components/modules/modal.tsx index b85d9b48903..621bfa07585 100644 --- a/apps/web/core/components/modules/modal.tsx +++ b/apps/web/core/components/modules/modal.tsx @@ -58,7 +58,7 @@ export const CreateUpdateModuleModal = observer(function CreateUpdateModuleModal const selectedProjectId = payload.project_id ?? projectId.toString(); await createModule(workspaceSlug.toString(), selectedProjectId, payload) - .then((res) => { + .then((_res) => { handleClose(); setToast({ type: TOAST_TYPE.SUCCESS, @@ -80,7 +80,7 @@ export const CreateUpdateModuleModal = observer(function CreateUpdateModuleModal const selectedProjectId = payload.project_id ?? projectId.toString(); await updateModuleDetails(workspaceSlug.toString(), selectedProjectId, data.id, payload) - .then((res) => { + .then((_res) => { handleClose(); setToast({ diff --git a/apps/web/core/components/modules/module-list-item-action.tsx b/apps/web/core/components/modules/module-list-item-action.tsx index 73746d05351..3340fab1d63 100644 --- a/apps/web/core/components/modules/module-list-item-action.tsx +++ b/apps/web/core/components/modules/module-list-item-action.tsx @@ -9,14 +9,7 @@ import { observer } from "mobx-react"; import { useParams } from "next/navigation"; import { SquareUser } from "lucide-react"; // Plane imports -import { - MODULE_STATUS, - EUserPermissions, - EUserPermissionsLevel, - IS_FAVORITE_MENU_OPEN, - MODULE_TRACKER_EVENTS, - MODULE_TRACKER_ELEMENTS, -} from "@plane/constants"; +import { MODULE_STATUS, EUserPermissions, EUserPermissionsLevel, IS_FAVORITE_MENU_OPEN } from "@plane/constants"; import { useLocalStorage } from "@plane/hooks"; import { useTranslation } from "@plane/i18n"; import { TOAST_TYPE, setPromiseToast, setToast } from "@plane/propel/toast"; diff --git a/apps/web/core/components/modules/module-status-dropdown.tsx b/apps/web/core/components/modules/module-status-dropdown.tsx index b0bf9b8cb65..ef532e68b16 100644 --- a/apps/web/core/components/modules/module-status-dropdown.tsx +++ b/apps/web/core/components/modules/module-status-dropdown.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React from "react"; import { observer } from "mobx-react"; import { MODULE_STATUS } from "@plane/constants"; diff --git a/apps/web/core/components/modules/module-view-header.tsx b/apps/web/core/components/modules/module-view-header.tsx index baf978a0132..916bfe95b6a 100644 --- a/apps/web/core/components/modules/module-view-header.tsx +++ b/apps/web/core/components/modules/module-view-header.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React, { useCallback, useEffect, useRef, useState } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; diff --git a/apps/web/core/components/modules/quick-actions.tsx b/apps/web/core/components/modules/quick-actions.tsx index 771635e00e1..f62e5cc3009 100644 --- a/apps/web/core/components/modules/quick-actions.tsx +++ b/apps/web/core/components/modules/quick-actions.tsx @@ -9,7 +9,6 @@ import { observer } from "mobx-react"; import { MoreHorizontal } from "lucide-react"; // plane imports import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants"; -import { useTranslation } from "@plane/i18n"; import { IconButton } from "@plane/propel/icon-button"; import { TOAST_TYPE, setToast } from "@plane/propel/toast"; import type { TContextMenuItem } from "@plane/ui"; @@ -44,7 +43,6 @@ export const ModuleQuickActions = observer(function ModuleQuickActions(props: Pr const { getModuleById, restoreModule } = useModule(); - const { t } = useTranslation(); // derived values const moduleDetails = getModuleById(moduleId); // auth diff --git a/apps/web/core/components/navigation/customize-navigation-dialog.tsx b/apps/web/core/components/navigation/customize-navigation-dialog.tsx index 4d7c824951b..b4390bd0188 100644 --- a/apps/web/core/components/navigation/customize-navigation-dialog.tsx +++ b/apps/web/core/components/navigation/customize-navigation-dialog.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useCallback, useMemo, useState } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; diff --git a/apps/web/core/components/navigation/tab-navigation-root.tsx b/apps/web/core/components/navigation/tab-navigation-root.tsx index c53fc45053f..f3bd16c60d9 100644 --- a/apps/web/core/components/navigation/tab-navigation-root.tsx +++ b/apps/web/core/components/navigation/tab-navigation-root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React, { useEffect } from "react"; import { observer } from "mobx-react"; import { useParams, useLocation, Link, useNavigate } from "react-router"; diff --git a/apps/web/core/components/onboarding/header.tsx b/apps/web/core/components/onboarding/header.tsx index 7efe5aafffb..4ebf6a9c156 100644 --- a/apps/web/core/components/onboarding/header.tsx +++ b/apps/web/core/components/onboarding/header.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; // plane imports import { PlaneLockup, ChevronLeftIcon } from "@plane/propel/icons"; diff --git a/apps/web/core/components/onboarding/invite-members.tsx b/apps/web/core/components/onboarding/invite-members.tsx index acac3446eec..b73c87bb8b8 100644 --- a/apps/web/core/components/onboarding/invite-members.tsx +++ b/apps/web/core/components/onboarding/invite-members.tsx @@ -262,7 +262,7 @@ const InviteMemberInput = observer(function InviteMemberInput(props: InviteMembe }); export function InviteMembers(props: Props) { - const { finishOnboarding, totalSteps, workspace } = props; + const { finishOnboarding, workspace } = props; const [isInvitationDisabled, setIsInvitationDisabled] = useState(true); diff --git a/apps/web/core/components/onboarding/steps/common/header.tsx b/apps/web/core/components/onboarding/steps/common/header.tsx index f6891126a51..69be93c6fa4 100644 --- a/apps/web/core/components/onboarding/steps/common/header.tsx +++ b/apps/web/core/components/onboarding/steps/common/header.tsx @@ -4,8 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; - type Props = { title: string; description: string; diff --git a/apps/web/core/components/onboarding/steps/profile/consent.tsx b/apps/web/core/components/onboarding/steps/profile/consent.tsx index 62927e43731..18f42063c8f 100644 --- a/apps/web/core/components/onboarding/steps/profile/consent.tsx +++ b/apps/web/core/components/onboarding/steps/profile/consent.tsx @@ -4,8 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; - import { CheckIcon } from "@plane/propel/icons"; type Props = { diff --git a/apps/web/core/components/onboarding/switch-account-dropdown.tsx b/apps/web/core/components/onboarding/switch-account-dropdown.tsx index aae4375249d..bf96aae6198 100644 --- a/apps/web/core/components/onboarding/switch-account-dropdown.tsx +++ b/apps/web/core/components/onboarding/switch-account-dropdown.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { Menu, Transition } from "@headlessui/react"; diff --git a/apps/web/core/components/pages/editor/editor-body.tsx b/apps/web/core/components/pages/editor/editor-body.tsx index 907c6d9e405..9270386dc0a 100644 --- a/apps/web/core/components/pages/editor/editor-body.tsx +++ b/apps/web/core/components/pages/editor/editor-body.tsx @@ -45,7 +45,6 @@ import type { TPageInstance } from "@/store/pages/base-page"; import { PageContentLoader } from "../loaders/page-content-loader"; import { PageEditorHeaderRoot } from "./header"; import { PageContentBrowser } from "./summary"; -import { PageEditorTitle } from "./title"; export type TEditorBodyConfig = { fileHandler: TFileHandler; diff --git a/apps/web/core/components/pages/editor/toolbar/options-dropdown.tsx b/apps/web/core/components/pages/editor/toolbar/options-dropdown.tsx index 291f3cb47c1..a1c62bba10a 100644 --- a/apps/web/core/components/pages/editor/toolbar/options-dropdown.tsx +++ b/apps/web/core/components/pages/editor/toolbar/options-dropdown.tsx @@ -10,7 +10,6 @@ import { ArrowUpToLine, Clipboard, History } from "lucide-react"; // plane imports import { TOAST_TYPE, setToast } from "@plane/propel/toast"; import { ToggleSwitch } from "@plane/ui"; -import { copyTextToClipboard } from "@plane/utils"; // hooks import { useAppRouter } from "@/hooks/use-app-router"; import { usePageFilters } from "@/hooks/use-page-filters"; diff --git a/apps/web/core/components/pages/list/order-by.tsx b/apps/web/core/components/pages/list/order-by.tsx index 60030c2e8fb..2e9f22f0ad7 100644 --- a/apps/web/core/components/pages/list/order-by.tsx +++ b/apps/web/core/components/pages/list/order-by.tsx @@ -4,11 +4,11 @@ * See the LICENSE file for details. */ -import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check } from "lucide-react"; +import { ArrowDownWideNarrow, ArrowUpWideNarrow } from "lucide-react"; // plane imports import { getButtonStyling } from "@plane/propel/button"; // types -import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons"; +import { CheckIcon } from "@plane/propel/icons"; import type { TPageFiltersSortBy, TPageFiltersSortKey } from "@plane/types"; import { CustomMenu } from "@plane/ui"; diff --git a/apps/web/core/components/power-k/ui/modal/footer.tsx b/apps/web/core/components/power-k/ui/modal/footer.tsx index cf22070a051..092e4f6da41 100644 --- a/apps/web/core/components/power-k/ui/modal/footer.tsx +++ b/apps/web/core/components/power-k/ui/modal/footer.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type React from "react"; import { observer } from "mobx-react"; // plane imports import { useTranslation } from "@plane/i18n"; diff --git a/apps/web/core/components/power-k/ui/modal/search-results.tsx b/apps/web/core/components/power-k/ui/modal/search-results.tsx index 12c49304f9b..eaa5eb9b876 100644 --- a/apps/web/core/components/power-k/ui/modal/search-results.tsx +++ b/apps/web/core/components/power-k/ui/modal/search-results.tsx @@ -12,7 +12,6 @@ import type { IWorkspaceSearchResults } from "@plane/types"; // hooks import { useAppRouter } from "@/hooks/use-app-router"; // helpers -import { openProjectAndScrollToSidebar } from "../../actions/helper"; import { PowerKModalCommandItem } from "./command-item"; import { POWER_K_SEARCH_RESULTS_GROUPS_MAP } from "./search-results-map"; diff --git a/apps/web/core/components/project-states/create-update/create.tsx b/apps/web/core/components/project-states/create-update/create.tsx index 0505fcb5870..85f084f6a42 100644 --- a/apps/web/core/components/project-states/create-update/create.tsx +++ b/apps/web/core/components/project-states/create-update/create.tsx @@ -34,7 +34,7 @@ export const StateCreate = observer(function StateCreate(props: TStateCreate) { if (!groupKey) return { status: "error" }; try { - const response = await createStateCallback({ ...formData, group: groupKey }); + await createStateCallback({ ...formData, group: groupKey }); setToast({ type: TOAST_TYPE.SUCCESS, diff --git a/apps/web/core/components/project-states/root.tsx b/apps/web/core/components/project-states/root.tsx index 8aac7f4d8b2..20e0dd393d9 100644 --- a/apps/web/core/components/project-states/root.tsx +++ b/apps/web/core/components/project-states/root.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useMemo } from "react"; import { observer } from "mobx-react"; import useSWR from "swr"; diff --git a/apps/web/core/components/project/dropdowns/order-by.tsx b/apps/web/core/components/project/dropdowns/order-by.tsx index ad00e3b2e00..5b83e0c2879 100644 --- a/apps/web/core/components/project/dropdowns/order-by.tsx +++ b/apps/web/core/components/project/dropdowns/order-by.tsx @@ -9,7 +9,7 @@ import { ArrowDownWideNarrow } from "lucide-react"; import { PROJECT_ORDER_BY_OPTIONS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { getButtonStyling } from "@plane/propel/button"; -import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons"; +import { CheckIcon } from "@plane/propel/icons"; import type { TProjectOrderByOptions } from "@plane/types"; import { CustomMenu } from "@plane/ui"; diff --git a/apps/web/core/components/project/leave-project-modal.tsx b/apps/web/core/components/project/leave-project-modal.tsx index 0f4b32ae02d..262a1237bef 100644 --- a/apps/web/core/components/project/leave-project-modal.tsx +++ b/apps/web/core/components/project/leave-project-modal.tsx @@ -64,7 +64,7 @@ export const LeaveProjectModal = observer(function LeaveProjectModal(props: ILea .then(() => { handleClose(); }) - .catch((err) => { + .catch((_err) => { setToast({ type: TOAST_TYPE.ERROR, title: "Error!", diff --git a/apps/web/core/components/sidebar/add-button.tsx b/apps/web/core/components/sidebar/add-button.tsx index 1e41f5192f0..6db327e363b 100644 --- a/apps/web/core/components/sidebar/add-button.tsx +++ b/apps/web/core/components/sidebar/add-button.tsx @@ -5,7 +5,6 @@ */ import { Button } from "@plane/propel/button"; -import { cn } from "@plane/utils"; type Props = React.ComponentProps<"button"> & { label: React.ReactNode; diff --git a/apps/web/core/components/views/filters/order-by.tsx b/apps/web/core/components/views/filters/order-by.tsx index bb27650f69f..33360658864 100644 --- a/apps/web/core/components/views/filters/order-by.tsx +++ b/apps/web/core/components/views/filters/order-by.tsx @@ -9,7 +9,7 @@ import { ArrowDownWideNarrow, ArrowUpWideNarrow } from "lucide-react"; import { VIEW_SORT_BY_OPTIONS, VIEW_SORTING_KEY_OPTIONS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { getButtonStyling } from "@plane/propel/button"; -import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons"; +import { CheckIcon } from "@plane/propel/icons"; import type { TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types"; import { CustomMenu } from "@plane/ui"; diff --git a/apps/web/core/components/views/view-list-item-action.tsx b/apps/web/core/components/views/view-list-item-action.tsx index 3e917a01544..5bfa74a32bc 100644 --- a/apps/web/core/components/views/view-list-item-action.tsx +++ b/apps/web/core/components/views/view-list-item-action.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import React, { useState } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; diff --git a/apps/web/core/components/views/view-list-item.tsx b/apps/web/core/components/views/view-list-item.tsx index 511759bf150..a790daca062 100644 --- a/apps/web/core/components/views/view-list-item.tsx +++ b/apps/web/core/components/views/view-list-item.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useRef } from "react"; import { observer } from "mobx-react"; import { useParams } from "next/navigation"; diff --git a/apps/web/core/components/web-hooks/form/secret-key.tsx b/apps/web/core/components/web-hooks/form/secret-key.tsx index 50ec98ea479..98bf1b73c88 100644 --- a/apps/web/core/components/web-hooks/form/secret-key.tsx +++ b/apps/web/core/components/web-hooks/form/secret-key.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { useState } from "react"; import { range } from "lodash-es"; import { observer } from "mobx-react"; diff --git a/apps/web/core/components/workspace-notifications/notification-app-sidebar-option.tsx b/apps/web/core/components/workspace-notifications/notification-app-sidebar-option.tsx index a6b39246ed2..935c36ae503 100644 --- a/apps/web/core/components/workspace-notifications/notification-app-sidebar-option.tsx +++ b/apps/web/core/components/workspace-notifications/notification-app-sidebar-option.tsx @@ -4,7 +4,6 @@ * See the LICENSE file for details. */ -import type { FC } from "react"; import { observer } from "mobx-react"; import useSWR from "swr"; // plane imports diff --git a/apps/web/core/components/workspace/billing/comparison/feature-detail.tsx b/apps/web/core/components/workspace/billing/comparison/feature-detail.tsx index 5476f142a15..b3335f3454b 100644 --- a/apps/web/core/components/workspace/billing/comparison/feature-detail.tsx +++ b/apps/web/core/components/workspace/billing/comparison/feature-detail.tsx @@ -7,7 +7,6 @@ import { CheckCircle2, Minus, MinusCircle } from "lucide-react"; import type { EProductSubscriptionEnum } from "@plane/types"; // plane imports -import { cn } from "@plane/utils"; // constants import type { TPlanFeatureData } from "@/constants/plans"; @@ -17,7 +16,7 @@ type TPlanFeatureDetailProps = { }; export function PlanFeatureDetail(props: TPlanFeatureDetailProps) { - const { subscriptionType, data } = props; + const { data } = props; if (data === null || data === undefined) { return ; diff --git a/apps/web/core/hooks/use-collaborative-page-actions.tsx b/apps/web/core/hooks/use-collaborative-page-actions.tsx index 7fc1491ff27..d212b47da65 100644 --- a/apps/web/core/hooks/use-collaborative-page-actions.tsx +++ b/apps/web/core/hooks/use-collaborative-page-actions.tsx @@ -5,7 +5,7 @@ */ import { useState, useEffect, useCallback, useMemo } from "react"; -import type { EditorRefApi, TDocumentEventsServer } from "@plane/editor"; +import type { TDocumentEventsServer } from "@plane/editor"; import type { TDocumentEventsClient } from "@plane/editor/lib"; import { DocumentCollaborativeEvents, getServerEventName } from "@plane/editor/lib"; import { TOAST_TYPE, setToast } from "@plane/propel/toast"; diff --git a/apps/web/core/services/analytics.service.ts b/apps/web/core/services/analytics.service.ts index 9b0c9431df0..4480d37bd07 100644 --- a/apps/web/core/services/analytics.service.ts +++ b/apps/web/core/services/analytics.service.ts @@ -88,7 +88,7 @@ export class AnalyticsService extends APIService { }); } - processUrl( + processUrl<_T extends string>( endpoint: string, workspaceSlug: string, tab: TAnalyticsGraphsBase | TAnalyticsTabsBase, diff --git a/apps/web/core/services/instance.service.ts b/apps/web/core/services/instance.service.ts index ae2e9d516ff..875401da36b 100644 --- a/apps/web/core/services/instance.service.ts +++ b/apps/web/core/services/instance.service.ts @@ -6,7 +6,7 @@ // types import { API_BASE_URL } from "@plane/constants"; -import type { IInstanceInfo, TPage } from "@plane/types"; +import type { IInstanceInfo } from "@plane/types"; // helpers // services import { APIService } from "@/services/api.service"; diff --git a/apps/web/core/store/issue/issue-details/relation.store.ts b/apps/web/core/store/issue/issue-details/relation.store.ts index f03b73cf3a1..4cdabd8a8cf 100644 --- a/apps/web/core/store/issue/issue-details/relation.store.ts +++ b/apps/web/core/store/issue/issue-details/relation.store.ts @@ -305,7 +305,7 @@ export class IssueRelationStore implements IIssueRelationStore { set(this.relationMap, [issueId], issueRelations); } }); - } catch (e) { + } catch (_e) { console.error("Error while extracting issue relations from issues"); } }; diff --git a/apps/web/core/store/issue/issue-details/root.store.ts b/apps/web/core/store/issue/issue-details/root.store.ts index ea0775aa157..77c7b64323d 100644 --- a/apps/web/core/store/issue/issue-details/root.store.ts +++ b/apps/web/core/store/issue/issue-details/root.store.ts @@ -23,7 +23,6 @@ import type { IIssueActivityStoreActions, TActivityLoader, } from "@/plane-web/store/issue/issue-details/activity.store"; -import type { RootStore } from "@/plane-web/store/root.store"; import type { TIssueRelationTypes } from "@/plane-web/types"; import type { IIssueRootStore } from "../root.store"; import { IssueAttachmentStore } from "./attachment.store"; diff --git a/apps/web/core/store/issue/module/issue.store.ts b/apps/web/core/store/issue/module/issue.store.ts index 973ff92fcd0..4f3fbddbf82 100644 --- a/apps/web/core/store/issue/module/issue.store.ts +++ b/apps/web/core/store/issue/module/issue.store.ts @@ -117,7 +117,7 @@ export class ModuleIssues extends BaseIssuesStore implements IModuleIssues { const moduleId = id ?? this.moduleId; moduleId && this.rootIssueStore.rootStore.module.updateModuleDistribution(distributionUpdates, moduleId); - } catch (e) { + } catch (_e) { console.warn("could not update module statistics"); } }; diff --git a/apps/web/core/store/issue/workspace-draft/issue.store.ts b/apps/web/core/store/issue/workspace-draft/issue.store.ts index 48b017676bd..850a9e03e31 100644 --- a/apps/web/core/store/issue/workspace-draft/issue.store.ts +++ b/apps/web/core/store/issue/workspace-draft/issue.store.ts @@ -391,31 +391,39 @@ export class WorkspaceDraftIssues implements IWorkspaceDraftIssues { // dummies viewFlags: ViewFlags = { enableQuickAdd: false, enableIssueCreation: false, enableInlineEditing: false }; groupedIssueIds: TGroupedIssues | TSubGroupedIssues | undefined = undefined; - getIssueIds = (groupId?: string, subGroupId?: string) => undefined; - getPaginationData = (groupId: string | undefined, subGroupId: string | undefined) => undefined; - getIssueLoader = (groupId?: string, subGroupId?: string) => "loaded" as TLoader; - getGroupIssueCount = (groupId: string | undefined, subGroupId: string | undefined, isSubGroupCumulative: boolean) => - undefined; - removeCycleFromIssue = async (workspaceSlug: string, projectId: string, issueId: string) => {}; + getIssueIds = (_groupId?: string, _subGroupId?: string) => undefined; + getPaginationData = (_groupId: string | undefined, _subGroupId: string | undefined) => undefined; + getIssueLoader = (_groupId?: string, _subGroupId?: string) => "loaded" as TLoader; + getGroupIssueCount = ( + _groupId: string | undefined, + _subGroupId: string | undefined, + _isSubGroupCumulative: boolean + ) => undefined; + removeCycleFromIssue = async (_workspaceSlug: string, _projectId: string, _issueId: string) => {}; addIssueToCycle = async ( - workspaceSlug: string, - projectId: string, - cycleId: string, - issueIds: string[], - fetchAddedIssues?: boolean + _workspaceSlug: string, + _projectId: string, + _cycleId: string, + _issueIds: string[], + _fetchAddedIssues?: boolean ) => {}; - removeIssueFromCycle = async (workspaceSlug: string, projectId: string, cycleId: string, issueId: string) => {}; + removeIssueFromCycle = async (_workspaceSlug: string, _projectId: string, _cycleId: string, _issueId: string) => {}; - removeIssuesFromModule = async (workspaceSlug: string, projectId: string, moduleId: string, issueIds: string[]) => {}; + removeIssuesFromModule = async ( + _workspaceSlug: string, + _projectId: string, + _moduleId: string, + _issueIds: string[] + ) => {}; changeModulesInIssue = async ( - workspaceSlug: string, - projectId: string, - issueId: string, - addModuleIds: string[], - removeModuleIds: string[] + _workspaceSlug: string, + _projectId: string, + _issueId: string, + _addModuleIds: string[], + _removeModuleIds: string[] ) => {}; - archiveIssue = async (workspaceSlug: string, projectId: string, issueId: string) => {}; - archiveBulkIssues = async (workspaceSlug: string, projectId: string, issueIds: string[]) => {}; - removeBulkIssues = async (workspaceSlug: string, projectId: string, issueIds: string[]) => {}; - bulkUpdateProperties = async (workspaceSlug: string, projectId: string, data: TBulkOperationsPayload) => {}; + archiveIssue = async (_workspaceSlug: string, _projectId: string, _issueId: string) => {}; + archiveBulkIssues = async (_workspaceSlug: string, _projectId: string, _issueIds: string[]) => {}; + removeBulkIssues = async (_workspaceSlug: string, _projectId: string, _issueIds: string[]) => {}; + bulkUpdateProperties = async (_workspaceSlug: string, _projectId: string, _data: TBulkOperationsPayload) => {}; } diff --git a/apps/web/core/store/pages/project-page.store.ts b/apps/web/core/store/pages/project-page.store.ts index c84dad1b5d9..abb48ab9178 100644 --- a/apps/web/core/store/pages/project-page.store.ts +++ b/apps/web/core/store/pages/project-page.store.ts @@ -328,7 +328,7 @@ export class ProjectPageStore implements IProjectPageStore { * @description delete a page * @param {string} pageId */ - removePage = async ({ pageId, shouldSync = true }: { pageId: string; shouldSync?: boolean }) => { + removePage = async ({ pageId, shouldSync: _shouldSync = true }: { pageId: string; shouldSync?: boolean }) => { try { const { workspaceSlug, projectId } = this.store.router; if (!workspaceSlug || !projectId || !pageId) return undefined;