lint fixes

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-11-26 01:05:10 +02:00
1 parent 6921ea1899
commit 8a97f59ab7
1 file changed
+2 -2
+2 -2
View File
@@ -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,
}); });