Skip to content

Commit

Permalink
fix: refactoring lodash imports for the better tree shaking (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev authored Oct 24, 2024
1 parent 1247ad7 commit 226ab9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playwright/core/expectScreenshotFixture.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {expect} from '@playwright/experimental-ct-react';
import type {JSHandle, Locator, PageScreenshotOptions} from '@playwright/test';
import {isFunction} from 'lodash';
import isFunction from 'lodash/isFunction';

import {DEFAULT_MOUNT_TEST_DELAY} from './constants';
import type {PlaywrightFixture} from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/hooks/useShowBorder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useEffect, useState} from 'react';

import {debounce} from 'lodash';
import debounce from 'lodash/debounce';

const useShowBorder = (withBorder: boolean, withBorderOnScroll: boolean) => {
const [showBorder, setShowBorder] = useState(withBorder);
Expand Down

0 comments on commit 226ab9d

Please sign in to comment.