mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use @typescript-eslint/semi.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0b182ccf6f
commit
460dfe4d2b
179 files changed
+556
-554
No files matched your search
@@ -42,7 +42,7 @@ export type RadioProps = React.HTMLProps<any> & {
|
||||
checked?: boolean;
|
||||
disabled?: boolean;
|
||||
onChange?(value: React.ChangeEvent<HTMLInputElement>): void;
|
||||
}
|
||||
};
|
||||
|
||||
export class Radio extends React.Component<RadioProps> {
|
||||
private elem: HTMLElement;
|
||||
@@ -52,7 +52,7 @@ export class Radio extends React.Component<RadioProps> {
|
||||
if (!checked && onChange) {
|
||||
onChange(value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
onKeyDown = (e: React.KeyboardEvent<any>) => {
|
||||
const SPACE_KEY = e.keyCode === 32;
|
||||
@@ -61,7 +61,7 @@ export class Radio extends React.Component<RadioProps> {
|
||||
this.elem.click();
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const { className, label, checked, children, ...inputProps } = this.props;
|
||||
|
||||
Reference in new issue
Block a user