Skip to content

Commit

Permalink
fix: import lodash methods directly (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Sep 20, 2023
1 parent d806c8b commit 41c73ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/extensions/behavior/Placeholder/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Node, Schema} from 'prosemirror-model';
import {EditorState, Plugin, PluginKey, Transaction} from 'prosemirror-state';
import {isEqual} from 'lodash';
import isEqual from 'lodash/isEqual';
import {Decoration, DecorationSet} from 'prosemirror-view';
import {findChildren, findParentNodeClosestToPos} from 'prosemirror-utils';
import {cn} from '../../../classname';
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {isFunction} from 'lodash';
import isFunction from 'lodash/isFunction';
import type {Extension, ExtensionAuto} from '../../core';

import {Bold, BoldOptions} from './Bold';
Expand Down
2 changes: 1 addition & 1 deletion src/toolbar/ToolbarButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {isFunction} from 'lodash';
import isFunction from 'lodash/isFunction';
import {ActionTooltip, Button, Icon} from '@gravity-ui/uikit';
import {cn} from '../classname';
import {ToolbarTooltipDelay} from './const';
Expand Down
2 changes: 1 addition & 1 deletion src/toolbar/ToolbarListButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {isFunction} from 'lodash';
import isFunction from 'lodash/isFunction';
import {Button, Hotkey, Icon, Menu, Popup, Tooltip} from '@gravity-ui/uikit';
import {HelpPopover} from '@gravity-ui/components';
import {ChevronDown} from '@gravity-ui/icons';
Expand Down

0 comments on commit 41c73ee

Please sign in to comment.