Skip to content

Commit 1da3e7c

Browse files
author
Florens Verschelde
committed
Fix lodash bare import in OptionalBlueprint.tsx
1 parent fdfbc10 commit 1da3e7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/OptionalBlueprint.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Classes } from '@blueprintjs/core';
22
import type { IconNames } from '@blueprintjs/icons';
33
import classNames from 'classnames';
4-
import _ from 'lodash';
4+
import kebabCase from 'lodash/kebabCase';
55
import * as React from 'react';
66
import { MosaicContext } from '../contextTypes';
77

@@ -28,10 +28,10 @@ export namespace OptionalBlueprint {
2828
}[keyof typeof Classes];
2929

3030
export function getClasses(blueprintNamespace: string, ...names: BlueprintClass[]): string {
31-
return names.map((name) => `${blueprintNamespace}-${_.kebabCase(name)}`).join(' ');
31+
return names.map((name) => `${blueprintNamespace}-${kebabCase(name)}`).join(' ');
3232
}
3333

3434
export function getIconClass(blueprintNamespace: string, iconName: keyof typeof IconNames): string {
35-
return `${blueprintNamespace}-icon-${_.kebabCase(iconName)}`;
35+
return `${blueprintNamespace}-icon-${kebabCase(iconName)}`;
3636
}
3737
}

0 commit comments

Comments
 (0)