[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:
parent
c05a5eb5ee
commit
bedc1fae1f
199 changed files with 261 additions and 396 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import range from "lodash/range";
|
||||
import { range } from "lodash-es";
|
||||
import { getRandomInt } from "../utils";
|
||||
|
||||
const CalendarDay = () => {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) => (
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import range from "lodash/range";
|
||||
import { range } from "lodash-es";
|
||||
import { Row } from "@plane/ui";
|
||||
import { getRandomLength } from "../utils";
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import range from "lodash/range";
|
||||
import { range } from "lodash-es";
|
||||
import { getRandomLength } from "../utils";
|
||||
|
||||
export const ActivitySettingsLoader = () => (
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue