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 SavolainenandMikko Aspiala committed 2022-03-31 15:13:31 +03:00
1 parent 010b3a18bd
commit e8f521ef4e
1 file changed
+4 -14
+4 -14
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;