diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ab5da4d838..89167f14bb 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -10,6 +10,7 @@ "formulahendry.auto-complete-tag", "formulahendry.auto-rename-tag", "mrmlnc.vscode-duplicate", - "ms-python.python" + "ms-python.python", + "wix.vscode-import-cost" ] } diff --git a/packages/client/src/components/dialogs/DataReassignmentDialog/sub-components/Body/AccountInfo.js b/packages/client/src/components/dialogs/DataReassignmentDialog/sub-components/Body/AccountInfo.js index 132b9aa0f8..be18dd934e 100644 --- a/packages/client/src/components/dialogs/DataReassignmentDialog/sub-components/Body/AccountInfo.js +++ b/packages/client/src/components/dialogs/DataReassignmentDialog/sub-components/Body/AccountInfo.js @@ -31,7 +31,7 @@ import { Avatar } from "@docspace/shared/components/avatar"; import CatalogSpamIcon from "PUBLIC_DIR/images/catalog.spam.react.svg"; import { commonIconsStyles } from "@docspace/shared/utils"; -import { capitalize } from "lodash"; +import capitalize from "lodash/capitalize"; const StyledCatalogSpamIcon = styled(CatalogSpamIcon)` ${commonIconsStyles} diff --git a/packages/client/src/helpers/people-helpers.js b/packages/client/src/helpers/people-helpers.js index 8e0534d72d..cf71235b6d 100644 --- a/packages/client/src/helpers/people-helpers.js +++ b/packages/client/src/helpers/people-helpers.js @@ -27,7 +27,8 @@ import React from "react"; import { Trans } from "react-i18next"; import MailReactSvgUrl from "PUBLIC_DIR/images/mail.react.svg?url"; -import { find, cloneDeep } from "lodash"; +import cloneDeep from "lodash/cloneDeep"; +import find from "lodash/find"; import { EmployeeActivationStatus, EmployeeStatus, diff --git a/packages/client/src/store/PluginStore.ts b/packages/client/src/store/PluginStore.ts index c0f80c2732..b11928051c 100644 --- a/packages/client/src/store/PluginStore.ts +++ b/packages/client/src/store/PluginStore.ts @@ -26,7 +26,7 @@ /* eslint-disable no-console */ import { makeAutoObservable, runInAction } from "mobx"; -import { cloneDeep } from "lodash"; +import cloneDeep from "lodash/cloneDeep"; import api from "@docspace/shared/api"; import { SettingsStore } from "@docspace/shared/store/SettingsStore"; diff --git a/packages/shared/components/cron/Cron.utils.ts b/packages/shared/components/cron/Cron.utils.ts index 08714ec583..d331d45ced 100644 --- a/packages/shared/components/cron/Cron.utils.ts +++ b/packages/shared/components/cron/Cron.utils.ts @@ -24,7 +24,7 @@ // content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode -import { capitalize } from "lodash"; +import capitalize from "lodash/capitalize"; import { DateTime, Info } from "luxon"; import { diff --git a/packages/shared/components/link-with-dropdown/LinkWithDropdown.styled.tsx b/packages/shared/components/link-with-dropdown/LinkWithDropdown.styled.tsx index 186802cb30..adeaf4380f 100644 --- a/packages/shared/components/link-with-dropdown/LinkWithDropdown.styled.tsx +++ b/packages/shared/components/link-with-dropdown/LinkWithDropdown.styled.tsx @@ -24,7 +24,6 @@ // content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode -import React from "react"; import styled, { css } from "styled-components"; import ExpanderDownReactSvg from "PUBLIC_DIR/images/expander-down.react.svg"; @@ -32,7 +31,6 @@ import { Base } from "../../themes"; import { Text } from "../text"; import { TextProps } from "../text/Text.types"; -// import { transform } from "lodash"; import { SimpleLinkWithDropdownProps, TDropdownType, diff --git a/packages/shared/components/media-viewer/sub-components/ViewerPlayer/index.tsx b/packages/shared/components/media-viewer/sub-components/ViewerPlayer/index.tsx index 7fc8eb919f..e908d44628 100644 --- a/packages/shared/components/media-viewer/sub-components/ViewerPlayer/index.tsx +++ b/packages/shared/components/media-viewer/sub-components/ViewerPlayer/index.tsx @@ -24,7 +24,7 @@ // content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode -import lodash from "lodash"; +import omit from "lodash/omit"; import { useGesture } from "@use-gesture/react"; import { useSpring, animated } from "@react-spring/web"; import { @@ -640,7 +640,7 @@ export const ViewerPlayer = ({ ref={videoRef} hidden={isAudio} preload="metadata" - style={lodash.omit(style, ["x", "y"])} + style={omit(style, ["x", "y"])} src={thumbnailSrc ? src : `${src}#t=0.001`} poster={posterUrl} onError={hadleError}