fix SwitchCase indent rule in eslint (#1454)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2020-11-19 15:15:49 -05:00
1 parent d7cba7d4d6
commit 43976f5bd9
22 files changed
+406 -400

No files matched your search

+6 -6
View File
@@ -48,12 +48,12 @@ export class Icon extends React.PureComponent<IconProps> {
@autobind()
onKeyDown(evt: React.KeyboardEvent<any>) {
switch (evt.nativeEvent.code) {
case "Space":
case "Enter":
const icon = findDOMNode(this) as HTMLElement;
setTimeout(() => icon.click());
evt.preventDefault();
break;
case "Space":
case "Enter":
const icon = findDOMNode(this) as HTMLElement;
setTimeout(() => icon.click());
evt.preventDefault();
break;
}
if (this.props.onKeyDown) {
this.props.onKeyDown(evt);