Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 16:35:04 +02:00
1 parent 0f3f5611ba
commit 1477bb8274
531 files changed
+3979 -3975

No files matched your search

@@ -16,14 +16,14 @@ export class DrawerParamToggler extends React.Component<DrawerParamTogglerProps,
public state: State = {}
toggle = () => {
this.setState({ open: !this.state.open })
this.setState({ open: !this.state.open });
}
render() {
const { label, children } = this.props
const { open } = this.state
const icon = `arrow_drop_${open ? "up" : "down"}`
const link = open ? _i18n._(t`Hide`) : _i18n._(t`Show`)
const { label, children } = this.props;
const { open } = this.state;
const icon = `arrow_drop_${open ? "up" : "down"}`;
const link = open ? _i18n._(t`Hide`) : _i18n._(t`Show`);
return (
<div className="DrawerParamToggler">
<div className="flex gaps align-center">
@@ -35,6 +35,6 @@ export class DrawerParamToggler extends React.Component<DrawerParamTogglerProps,
</div>
<div className={cssNames("param-content", { open })}>{children}</div>
</div>
)
);
}
}