Skip to content

Commit 226ab9d

Browse files
authored
fix: refactoring lodash imports for the better tree shaking (#1058)
1 parent 1247ad7 commit 226ab9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playwright/core/expectScreenshotFixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {expect} from '@playwright/experimental-ct-react';
22
import type {JSHandle, Locator, PageScreenshotOptions} from '@playwright/test';
3-
import {isFunction} from 'lodash';
3+
import isFunction from 'lodash/isFunction';
44

55
import {DEFAULT_MOUNT_TEST_DELAY} from './constants';
66
import type {PlaywrightFixture} from './types';

src/navigation/hooks/useShowBorder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useEffect, useState} from 'react';
22

3-
import {debounce} from 'lodash';
3+
import debounce from 'lodash/debounce';
44

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

0 commit comments

Comments
 (0)