1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix code style

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-03-28 08:27:05 +03:00
parent 010b3a18bd
commit e8f521ef4e
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -56,8 +56,7 @@ export class Select extends React.Component<SelectProps> {
}
@computed get themeClass() {
const themeName =
this.props.themeName || ThemeStore.getInstance().activeTheme.type;
const themeName = this.props.themeName || ThemeStore.getInstance().activeTheme.type;
return `theme-${themeName}`;
}
@ -92,9 +91,7 @@ export class Select extends React.Component<SelectProps> {
if (autoConvertOptions && Array.isArray(options)) {
return options.map(opt => {
return this.isValidOption(opt)
? opt
: { value: opt, label: String(opt) };
return this.isValidOption(opt) ? opt : { value: opt, label: String(opt) };
});
}
@ -120,15 +117,8 @@ export class Select extends React.Component<SelectProps> {
render() {
const {
className,
menuClass,
isCreatable,
autoConvertOptions,
value,
options,
components = {},
id: inputId,
...props
className, menuClass, isCreatable, autoConvertOptions,
value, options, components = {}, id: inputId, ...props
} = this.props;
const WrappedMenu = components.Menu ?? Menu;