From f4946d9909423a96a788dd8a3f7b2cb88b4a7c04 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 17 Jun 2020 14:52:38 +0300 Subject: [PATCH] Revert select component Signed-off-by: Lauri Nevala --- dashboard/client/components/select/select.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/client/components/select/select.tsx b/dashboard/client/components/select/select.tsx index e2cd986e69a4..1603864bc569 100644 --- a/dashboard/client/components/select/select.tsx +++ b/dashboard/client/components/select/select.tsx @@ -10,7 +10,7 @@ import ReactSelect, { components as ReactSelectComponents } from "react-select" import { Props as ReactSelectProps } from "react-select/base" import Creatable, { CreatableProps } from "react-select/creatable" import { StylesConfig } from "react-select/src/styles" -import { ActionMeta, OptionTypeBase } from "react-select/src/types" +import { ActionMeta } from "react-select/src/types" import { themeStore } from "../../theme.store"; export { ReactSelectComponents } @@ -31,7 +31,7 @@ export interface SelectProps extends ReactSelectProps, CreatableProp menuClass?: string; isCreatable?: boolean; autoConvertOptions?: boolean; // to internal format (i.e. {value: T, label: string}[]), not working with groups - onChange?(option: T, meta?: ActionMeta): void; + onChange?(option: T, meta?: ActionMeta): void; } @observer @@ -76,7 +76,7 @@ export class Select extends React.Component { } @autobind() - onChange(value: SelectOption, meta: ActionMeta) { + onChange(value: SelectOption, meta: ActionMeta) { if (this.props.onChange) { this.props.onChange(value, meta); }