Skip to content

Commit

Permalink
fix: refactoring lodash imports for the better tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev committed Oct 24, 2024
1 parent 1247ad7 commit b86a2b8
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 b86a2b8

Please sign in to comment.