1
0
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:
Roman 2020-11-26 01:05:10 +02:00
parent 6921ea1899
commit 8a97f59ab7

View File

@ -19,7 +19,7 @@ const badgeMeta = observable({
// Common handler for all Badge instances
document.addEventListener("selectionchange", () => {
badgeMeta.hasTextSelected = window.getSelection().toString().trim().length > 0
badgeMeta.hasTextSelected = window.getSelection().toString().trim().length > 0;
});
@withTooltip
@ -46,7 +46,7 @@ export class Badge extends React.Component<BadgeProps> {
render() {
const { className, label, small, children, isExpanded, ...elemProps } = this.props;
const classNames = cssNames("Badge", className, {
small: small,
small,
interactive: this.isExpandable,
isExpanded: isExpanded ?? this.isExpanded,
});