mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
lint fixes
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
6921ea1899
commit
8a97f59ab7
@ -19,7 +19,7 @@ const badgeMeta = observable({
|
|||||||
|
|
||||||
// Common handler for all Badge instances
|
// Common handler for all Badge instances
|
||||||
document.addEventListener("selectionchange", () => {
|
document.addEventListener("selectionchange", () => {
|
||||||
badgeMeta.hasTextSelected = window.getSelection().toString().trim().length > 0
|
badgeMeta.hasTextSelected = window.getSelection().toString().trim().length > 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
@withTooltip
|
@withTooltip
|
||||||
@ -46,7 +46,7 @@ export class Badge extends React.Component<BadgeProps> {
|
|||||||
render() {
|
render() {
|
||||||
const { className, label, small, children, isExpanded, ...elemProps } = this.props;
|
const { className, label, small, children, isExpanded, ...elemProps } = this.props;
|
||||||
const classNames = cssNames("Badge", className, {
|
const classNames = cssNames("Badge", className, {
|
||||||
small: small,
|
small,
|
||||||
interactive: this.isExpandable,
|
interactive: this.isExpandable,
|
||||||
isExpanded: isExpanded ?? this.isExpanded,
|
isExpanded: isExpanded ?? this.isExpanded,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user