mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1 +1 @@
|
||||
export * from './select'
|
||||
export * from './select';
|
||||
@@ -6,8 +6,8 @@ import React, { ReactNode } from "react";
|
||||
import { computed } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
import { autobind, cssNames } from "../../utils";
|
||||
import ReactSelect, { ActionMeta, components, Props as ReactSelectProps, Styles } from "react-select"
|
||||
import Creatable, { CreatableProps } from "react-select/creatable"
|
||||
import ReactSelect, { ActionMeta, components, Props as ReactSelectProps, Styles } from "react-select";
|
||||
import Creatable, { CreatableProps } from "react-select/creatable";
|
||||
import { themeStore } from "../../theme.store";
|
||||
|
||||
const { Menu } = components;
|
||||
@@ -70,7 +70,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 options as SelectOption[];
|
||||
}
|
||||
@@ -116,7 +116,7 @@ export class Select extends React.Component<SelectProps> {
|
||||
/>
|
||||
),
|
||||
}
|
||||
}
|
||||
};
|
||||
return isCreatable
|
||||
? <Creatable {...selectProps}/>
|
||||
: <ReactSelect {...selectProps}/>;
|
||||
|
||||
Reference in new issue
Block a user