From 6696a17b9032f5b95b4501d1a9de40128dbea311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 2 Dec 2020 09:22:42 +0000 Subject: [PATCH] fix(ui): pass new react-select typescript args --- .../SilenceModal/SilenceMatch/LabelValueInput.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx b/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx index bca1f1bda..90b24e2a0 100644 --- a/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx +++ b/ui/src/Components/SilenceModal/SilenceMatch/LabelValueInput.tsx @@ -31,7 +31,7 @@ const GenerateHashFromMatchers = ( }, }); -const Placeholder: FC> = (props) => { +const Placeholder: FC> = (props) => { return (
@@ -39,7 +39,7 @@ const Placeholder: FC> = (props) => { ); }; -interface ValueContainerPropsT extends ValueContainerProps { +interface ValueContainerPropsT extends ValueContainerProps { selectProps: { silenceFormStore: SilenceFormStore; matcher: MatcherWithIDT; @@ -51,7 +51,7 @@ const ValueContainer: FC = ({ selectProps, ...props }) => ( - )}> + )}> {selectProps.matcher.values.length > 0 ? ( >, + ValueContainer: ValueContainer as FC< + ValueContainerProps + >, Placeholder: Placeholder, }} silenceFormStore={silenceFormStore}