[WEB-5027] fix: replace lodash package with lodash-es (#7856)

* fix: replace lodash pacakge with lodash-es

* fix: lint errors

* fix: import fixes
This commit is contained in:
sriram veeraghanta 2025-09-26 17:59:31 +05:30 committed by GitHub
parent c05a5eb5ee
commit bedc1fae1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
199 changed files with 261 additions and 396 deletions

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import Link from "next/link";
import { useForm } from "react-hook-form";
// plane internal packages

View File

@ -1,5 +1,5 @@
import { FC, useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import Link from "next/link";
import { useForm } from "react-hook-form";
// plane internal packages

View File

@ -1,6 +1,6 @@
"use client";
import { FC, useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import Link from "next/link";
import { useForm } from "react-hook-form";
// plane internal packages

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { observable, action, computed, makeObservable, runInAction } from "mobx";
// plane internal packages
import { EInstanceStatus, TInstanceStatus } from "@plane/constants";

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { action, observable, runInAction, makeObservable, computed } from "mobx";
// plane imports
import { InstanceWorkspaceService } from "@plane/services";

View File

@ -27,7 +27,7 @@
"@plane/utils": "workspace:*",
"autoprefixer": "10.4.14",
"axios": "catalog:",
"lodash": "catalog:",
"lodash-es": "catalog:",
"lucide-react": "catalog:",
"mobx": "catalog:",
"mobx-react": "catalog:",
@ -45,7 +45,7 @@
"@plane/eslint-config": "workspace:*",
"@plane/tailwind-config": "workspace:*",
"@plane/typescript-config": "workspace:*",
"@types/lodash": "catalog:",
"@types/lodash-es": "catalog:",
"@types/node": "18.16.1",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",

View File

@ -36,7 +36,6 @@
"express-ws": "^5.0.2",
"helmet": "^7.1.0",
"ioredis": "^5.4.1",
"lodash": "catalog:",
"morgan": "1.10.1",
"pino-http": "^10.3.0",
"pino-pretty": "^11.2.2",

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useCallback } from "react";
import cloneDeep from "lodash/cloneDeep";
import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";
// hooks

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useCallback } from "react";
import cloneDeep from "lodash/cloneDeep";
import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";
// constants

View File

@ -1,7 +1,7 @@
"use client";
import { useCallback, useMemo, useRef } from "react";
import debounce from "lodash/debounce";
import { debounce } from "lodash-es";
import { observer } from "mobx-react";
// types
import { IIssueDisplayProperties } from "@plane/types";

View File

@ -1,5 +1,5 @@
import { MutableRefObject } from "react";
import isNil from "lodash/isNil";
import { isNil } from "lodash-es";
import { observer } from "mobx-react";
// types
import {

View File

@ -1,6 +1,6 @@
"use client";
import isNil from "lodash/isNil";
import { isNil } from "lodash-es";
import { ContrastIcon } from "lucide-react";
// types
import { EIconSize, ISSUE_PRIORITIES } from "@plane/constants";

View File

@ -1,8 +1,4 @@
import concat from "lodash/concat";
import get from "lodash/get";
import set from "lodash/set";
import uniq from "lodash/uniq";
import update from "lodash/update";
import { concat, get, set, uniq, update } from "lodash-es";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// plane imports

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { observable, action, makeObservable, runInAction } from "mobx";
// plane imports
import { InstanceService } from "@plane/services";

View File

@ -1,5 +1,4 @@
import isEmpty from "lodash/isEmpty";
import set from "lodash/set";
import { isEmpty, set } from "lodash-es";
import { makeObservable, observable, action, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
import { v4 as uuidv4 } from "uuid";

View File

@ -1,6 +1,4 @@
import cloneDeep from "lodash/cloneDeep";
import isEqual from "lodash/isEqual";
import set from "lodash/set";
import { cloneDeep, isEqual, set } from "lodash-es";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// plane internal

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { SitesLabelService } from "@plane/services";

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { SitesMemberService } from "@plane/services";

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { SitesModuleService } from "@plane/services";

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { action, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { UserService } from "@plane/services";

View File

@ -1,4 +1,4 @@
import set from "lodash/set";
import { set } from "lodash-es";
import { makeObservable, observable, runInAction, action } from "mobx";
// plane imports
import { SitesProjectPublishService } from "@plane/services";

View File

@ -1,4 +1,4 @@
import clone from "lodash/clone";
import { clone } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { SitesStateService } from "@plane/services";

View File

@ -1,5 +1,5 @@
import { AxiosError } from "axios";
import set from "lodash/set";
import { set } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// plane imports
import { UserService } from "@plane/services";

View File

@ -1,5 +1,5 @@
import { format, isValid } from "date-fns";
import isNumber from "lodash/isNumber";
import { isNumber } from "lodash-es";
export const timeAgo = (time: any) => {
switch (typeof time) {

View File

@ -33,7 +33,7 @@
"date-fns": "^4.1.0",
"dompurify": "^3.0.11",
"dotenv": "^16.3.1",
"lodash": "catalog:",
"lodash-es": "catalog:",
"lowlight": "^2.9.0",
"lucide-react": "catalog:",
"mobx": "catalog:",
@ -56,7 +56,7 @@
"@plane/eslint-config": "workspace:*",
"@plane/tailwind-config": "workspace:*",
"@plane/typescript-config": "workspace:*",
"@types/lodash": "catalog:",
"@types/lodash-es": "catalog:",
"@types/node": "18.14.1",
"@types/nprogress": "^0.2.0",
"@types/react": "catalog:",

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
// plane helpers
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";

View File

@ -1,8 +1,4 @@
/* eslint-disable no-useless-catch */
import orderBy from "lodash/orderBy";
import set from "lodash/set";
// import unset from "lodash/unset";
import { orderBy, set } from "lodash-es";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
@ -140,19 +136,15 @@ export class Estimate implements IEstimate {
projectId: string,
payload: Partial<IEstimatePointType>
): Promise<IEstimatePointType | undefined> => {
try {
if (!this.id || !payload) return;
if (!this.id || !payload) return;
const estimatePoint = await estimateService.createEstimatePoint(workspaceSlug, projectId, this.id, payload);
if (estimatePoint) {
runInAction(() => {
if (estimatePoint.id) {
set(this.estimatePoints, [estimatePoint.id], new EstimatePoint(this.store, this.data, estimatePoint));
}
});
}
} catch (error) {
throw error;
const estimatePoint = await estimateService.createEstimatePoint(workspaceSlug, projectId, this.id, payload);
if (estimatePoint) {
runInAction(() => {
if (estimatePoint.id) {
set(this.estimatePoints, [estimatePoint.id], new EstimatePoint(this.store, this.data, estimatePoint));
}
});
}
};
}

View File

@ -1,10 +1,4 @@
/* eslint-disable no-useless-catch */
import concat from "lodash/concat";
import orderBy from "lodash/orderBy";
import set from "lodash/set";
import uniq from "lodash/uniq";
import update from "lodash/update";
import { concat, orderBy, set, uniq, update } from "lodash-es";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// plane package imports

View File

@ -1,5 +1,4 @@
import isEqual from "lodash/isEqual";
import set from "lodash/set";
import { isEqual, set } from "lodash-es";
import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// components

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,7 +1,6 @@
"use client";
import React, { useEffect, useState } from "react";
import { filter } from "lodash";
import { Rocket, Search, X } from "lucide-react";
import { Combobox, Dialog, Transition } from "@headlessui/react";
// i18n

View File

@ -1,7 +1,7 @@
"use client";
import { FC, Fragment, useCallback, useRef, useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { CalendarCheck } from "lucide-react";
// headless ui

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useMemo } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
import { ChevronUp, ChevronDown } from "lucide-react";

View File

@ -1,6 +1,6 @@
"use client";
import React, { FC } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { LayersIcon, SquareUser, Users } from "lucide-react";
// plane types

View File

@ -1,6 +1,5 @@
"use client";
import { FC, MouseEvent, useRef } from "react";
import isEmpty from "lodash/isEmpty";
import { observer } from "mobx-react";
import { usePathname, useSearchParams } from "next/navigation";
import { Check } from "lucide-react";

View File

@ -1,5 +1,5 @@
import { useState } from "react";
import { intersection } from "lodash";
import { intersection } from "lodash-es";
import { Controller, useForm } from "react-hook-form";
import {
EUserPermissions,

View File

@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
import intersection from "lodash/intersection";
import { intersection } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Dialog, Transition } from "@headlessui/react";

View File

@ -1,7 +1,7 @@
import cloneDeep from "lodash/cloneDeep";
import uniqBy from "lodash/uniqBy";
//
import { cloneDeep, uniqBy } from "lodash-es";
// plane imports
import type { ChartDataType } from "@plane/types";
// local imports
import { months } from "../data";
import { getNumberOfDaysBetweenTwoDates, getNumberOfDaysInMonth } from "./helpers";
import { getWeeksBetweenTwoDates, IWeekBlock } from "./week-view";

View File

@ -1,6 +1,6 @@
"use client";
import range from "lodash/range";
import { range } from "lodash-es";
// ui
import { Loader } from "@plane/ui";

View File

@ -1,6 +1,6 @@
"use client";
import range from "lodash/range";
import { range } from "lodash-es";
// ui
import { Loader } from "@plane/ui";

View File

@ -1,6 +1,6 @@
"use client";
import range from "lodash/range";
import { range } from "lodash-es";
// ui
import { Loader } from "@plane/ui";

View File

@ -1,6 +1,5 @@
import { FC, useState } from "react";
import concat from "lodash/concat";
import uniq from "lodash/uniq";
import { concat, uniq } from "lodash-es";
import { observer } from "mobx-react";
import { PAST_DURATION_FILTER_OPTIONS } from "@plane/constants";
import { TInboxIssueFilterDateKeys } from "@plane/types";

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane types
import { TInboxIssueFilterMemberKeys } from "@plane/types";

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useCallback, useEffect, useRef, useState } from "react";
import debounce from "lodash/debounce";
import { debounce } from "lodash-es";
import { observer } from "mobx-react";
import { Controller, useForm } from "react-hook-form";
// plane imports

View File

@ -1,5 +1,5 @@
import { FC, useMemo } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { SlidersHorizontal } from "lucide-react";
// plane imports

View File

@ -1,5 +1,5 @@
import { FC, useCallback } from "react";
import cloneDeep from "lodash/cloneDeep";
import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react";
import {
EIssueFilterType,

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import xor from "lodash/xor";
import { xor } from "lodash-es";
import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n";
// hooks

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useState } from "react";
import isNil from "lodash/isNil";
import { isNil } from "lodash-es";
import { observer } from "mobx-react";
import { Bell, BellOff } from "lucide-react";
// plane-i18n

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View File

@ -1,5 +1,5 @@
import React from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import {
IIssueDisplayFilterOptions,

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import React, { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { CycleGroupIcon } from "@plane/propel/icons";

View File

@ -1,7 +1,7 @@
"use client";
import React, { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
import { IIssueLabel } from "@plane/types";
// components

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Loader, Avatar } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import React, { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components

View File

@ -1,7 +1,7 @@
"use client";
import React, { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// ui
import { Loader } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import React, { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
import { EIconSize } from "@plane/constants";
import { StateGroupIcon } from "@plane/propel/icons";

View File

@ -1,7 +1,7 @@
"use client";
import { useCallback, useMemo, SyntheticEvent } from "react";
import xor from "lodash/xor";
import { xor } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import omit from "lodash/omit";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import omit from "lodash/omit";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import omit from "lodash/omit";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { useParams, usePathname } from "next/navigation";
// plane imports

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import omit from "lodash/omit";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View File

@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import omit from "lodash/omit";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import useSWR from "swr";

View File

@ -1,5 +1,5 @@
import React, { useCallback } from "react";
import xor from "lodash/xor";
import { xor } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// types

View File

@ -2,11 +2,7 @@
import { CSSProperties, FC } from "react";
import { extractInstruction } from "@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item";
import clone from "lodash/clone";
import concat from "lodash/concat";
import isNil from "lodash/isNil";
import pull from "lodash/pull";
import uniq from "lodash/uniq";
import { clone, isNil, pull, uniq, concat } from "lodash-es";
import scrollIntoView from "smooth-scroll-into-view-if-needed";
import { ContrastIcon } from "lucide-react";
// plane types

View File

@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { WORK_ITEM_TRACKER_EVENTS } from "@plane/constants";

View File

@ -1,6 +1,6 @@
"use client";
import React, { FC, useRef, useState } from "react";
import { omit } from "lodash";
import { omit } from "lodash-es";
import { observer } from "mobx-react";
import { Copy, Pencil, SquareStackIcon, Trash2 } from "lucide-react";
// plane utils

View File

@ -1,7 +1,7 @@
"use client";
import { FC } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
// components
import { ListLoaderItemRow } from "@/components/ui/loader/layouts/list-layout-loader";

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,6 +1,6 @@
"use client";
import range from "lodash/range";
import { range } from "lodash-es";
import { Loader } from "@plane/ui";
export const PageLoader: React.FC = (props) => {

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,7 +1,7 @@
"use client";
import { useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { sortBy } from "lodash-es";
import { observer } from "mobx-react";
// plane ui
import { Avatar, Loader } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import React, { useEffect, useMemo, useRef, useState } from "react";
import xor from "lodash/xor";
import { xor } from "lodash-es";
import { observer } from "mobx-react";
import { Search, X } from "lucide-react";
import { Combobox } from "@headlessui/react";

View File

@ -1,4 +1,4 @@
import { range } from "lodash";
import { range } from "lodash-es";
import { observer } from "mobx-react";
import Link from "next/link";
import { usePathname, useParams } from "next/navigation";

View File

@ -1,7 +1,7 @@
"use client";
import { FC, useCallback, useRef, useState } from "react";
import { debounce } from "lodash";
import { debounce } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { Search, X } from "lucide-react";

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from "react";
import { debounce } from "lodash";
import { debounce } from "lodash-es";
import { observer } from "mobx-react";
import { Minimize2 } from "lucide-react";
// plane types

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const CycleModuleBoardLayoutLoader = () => (
<div className="h-full w-full animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const CycleModuleListLayoutLoader = () => (
<div className="h-full overflow-y-auto animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { getRandomInt } from "../utils";
const CalendarDay = () => {

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { Row } from "@plane/ui";
import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants";
import { getRandomLength } from "../utils";

View File

@ -1,5 +1,5 @@
import { forwardRef } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
// plane ui
import { ContentWrapper } from "@plane/ui";
// plane utils

View File

@ -1,5 +1,5 @@
import { Fragment, forwardRef } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
// plane ui
import { Row } from "@plane/ui";
// plane utils

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const MembersLayoutLoader = () => (
<div className="flex gap-5 py-1.5 overflow-x-auto">
{range(5).map((columnIndex) => (

View File

@ -1,5 +1,5 @@
import React from "react";
import range from "lodash/range";
import { range } from "lodash-es";
export const InboxSidebarLoader = () => (
<div className="flex flex-col">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { Row } from "@plane/ui";
import { getRandomLength } from "../utils";

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const NotificationsLoader = () => (
<div className="divide-y divide-custom-border-100 animate-pulse overflow-hidden">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const PagesLoader = () => (
<div className="flex h-full flex-col space-y-5 overflow-hidden p-6">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ProjectsLoader = () => (
<div className="h-full w-full overflow-y-auto p-8 animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { getRandomLength } from "../utils";
export const ActivitySettingsLoader = () => (

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { useTranslation } from "@plane/i18n";
export const APITokenSettingsLoader = () => {
const { t } = useTranslation();

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const EmailSettingsLoader = () => (
<div className="mx-auto mt-8 h-full w-full overflow-y-auto px-6 lg:px-20 pb- animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ImportExportSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-200 animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const IntegrationsSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-100 animate-pulse">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const MembersSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-100">

View File

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ViewListLoader = () => (
<div className="flex h-full w-full flex-col animate-pulse">

View File

@ -1,7 +1,7 @@
"use client";
import { useState, FC } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons

View File

@ -1,6 +1,5 @@
import { useCallback, useMemo, useState } from "react";
import cloneDeep from "lodash/cloneDeep";
import isEqual from "lodash/isEqual";
import { isEqual, cloneDeep } from "lodash-es";
import { observer } from "mobx-react";
// plane imports
import { EUserPermissionsLevel, PROJECT_VIEW_TRACKER_EVENTS } from "@plane/constants";

Some files were not shown because too many files have changed in this diff Show More