fix: build errors

This commit is contained in:
Lakhan 2024-06-05 16:12:25 +05:30
parent fff9ba7c59
commit 352010d4dc
11 changed files with 13 additions and 18 deletions

View File

@ -8,7 +8,7 @@ import { CustomSelect, Loader, ToggleSwitch } from "@plane/ui";
import { SelectMonthModal } from "@/components/automation";
// icon
// constants
import { AUTO_ARCHIVE_TOGGLED, AUTO_ARCHIVE_UPDATED } from "constants/event-tracker";
import { AUTO_ARCHIVE_TOGGLED, AUTO_ARCHIVE_UPDATED } from "@/constants/event-tracker";
import { EUserProjectRoles, PROJECT_AUTOMATION_MONTHS } from "@/constants/project";
// hooks
import { useProject, useUser, useEventTracker } from "@/hooks/store";

View File

@ -6,7 +6,7 @@ import { IProject } from "@plane/types";
import { CustomSelect, CustomSearchSelect, ToggleSwitch, StateGroupIcon, DoubleCircleIcon, Loader } from "@plane/ui";
import { SelectMonthModal } from "@/components/automation";
// constants
import { AUTO_CLOSE_Toggled, AUTO_CLOSE_UPDATED } from "constants/event-tracker";
import { AUTO_CLOSE_Toggled, AUTO_CLOSE_UPDATED } from "@/constants/event-tracker";
import { EUserProjectRoles, PROJECT_AUTOMATION_MONTHS } from "@/constants/project";
// hooks
import { useProject, useProjectState, useUser, useEventTracker } from "@/hooks/store";

View File

@ -9,7 +9,7 @@ import { Button, Input, TextArea, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { EModalPosition, EModalWidth, ModalCore } from "@/components/core";
// constants
import { ESTIMATE_CREATED, ESTIMATE_UPDATED } from "constants/event-tracker";
import { ESTIMATE_CREATED, ESTIMATE_UPDATED } from "@/constants/event-tracker";
// helpers
import { checkDuplicates } from "@/helpers/array.helper";
// hooks

View File

@ -8,7 +8,7 @@ import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { AlertModalCore } from "@/components/core";
// constants
import { ESTIMATE_DELETED } from "constants/event-tracker";
import { ESTIMATE_DELETED } from "@/constants/event-tracker";
// hooks
import { useEstimate, useEventTracker } from "@/hooks/store";

View File

@ -6,7 +6,7 @@ import { Pencil, Trash2 } from "lucide-react";
import { IEstimate } from "@plane/types";
import { Button, CustomMenu, TOAST_TYPE, setToast } from "@plane/ui";
// constants
import { ESTIMATE_DISABLED } from "constants/event-tracker";
import { ESTIMATE_DISABLED } from "@/constants/event-tracker";
// helpers
import { orderArrayBy } from "@/helpers/array.helper";
// hooks

View File

@ -9,7 +9,7 @@ import type { IIssueLabel, IState } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// constants
import { E_STATES, LABEL_CREATED } from "constants/event-tracker";
import { E_STATES, LABEL_CREATED } from "@/constants/event-tracker";
import { LABEL_COLOR_OPTIONS, getRandomLabelColor } from "@/constants/label";
// hooks
import { useLabel, useEventTracker } from "@/hooks/store";

View File

@ -8,7 +8,7 @@ import { IIssueLabel } from "@plane/types";
// ui
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
// constants
import { E_Labels, LABEL_CREATED, LABEL_UPDATED } from "constants/event-tracker";
import { E_Labels, LABEL_CREATED, LABEL_UPDATED } from "@/constants/event-tracker";
import { getRandomLabelColor, LABEL_COLOR_OPTIONS } from "@/constants/label";
// hooks
import { useLabel, useEventTracker } from "@/hooks/store";

View File

@ -8,7 +8,7 @@ import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { AlertModalCore } from "@/components/core";
// constants
import { E_Labels, LABEL_DELETED, LABEL_GROUP_DELETED } from "constants/event-tracker";
import { E_Labels, LABEL_DELETED, LABEL_GROUP_DELETED } from "@/constants/event-tracker";
// hooks
import { useLabel, useEventTracker } from "@/hooks/store";

View File

@ -1,10 +1,6 @@
import { MutableRefObject, useEffect, useRef, useState } from "react";
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import {
ElementDragPayload,
draggable,
dropTargetForElements,
} from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
import { pointerOutsideOfPreview } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
import { attachInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item";
@ -67,7 +63,6 @@ export const LabelDndHOC = observer((props: Props) => {
const dragHandleRef = useRef<HTMLButtonElement | null>(null);
const captureLabelDropEvent = (source: TargetData, destination: TargetData) => {
if (source?.parentId != destination.id) {
source?.parentId &&
captureEvent(LABEL_REMOVED_G, {

View File

@ -3,10 +3,10 @@ import { useRouter } from "next/router";
import { X, Pencil } from "lucide-react";
// types
import { IIssueLabel } from "@plane/types";
// hooks
import { useLabel, useEventTracker } from "@/hooks/store";
// constants
import { E_Labels, LABEL_REMOVED_G } from "@/constants/event-tracker";
// hooks
import { useLabel, useEventTracker } from "@/hooks/store";
// components
import { CreateUpdateLabelInline } from "./create-update-label-inline";
import { ICustomMenuItem, LabelItemBlock } from "./label-block/label-item-block";

View File

@ -9,7 +9,7 @@ import { CustomSelect, TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
// components
import { ConfirmProjectMemberRemove } from "@/components/project";
// constants
import { E_MEMBERS, PM_ROLE_CHANGED, PROJECT_MEMBER_LEAVE, PROJECT_MEMBER_REMOVED } from "constants/event-tracker";
import { E_MEMBERS, PM_ROLE_CHANGED, PROJECT_MEMBER_LEAVE, PROJECT_MEMBER_REMOVED } from "@/constants/event-tracker";
import { EUserProjectRoles } from "@/constants/project";
import { ROLE } from "@/constants/workspace";
// helpers