mirror of
https://github.com/prymitive/karma
synced 2026-05-19 04:26:41 +00:00
fix(ui): pass new react-select typescript args
This commit is contained in:
committed by
Łukasz Mierzwa
parent
24edf46949
commit
6696a17b90
@@ -31,7 +31,7 @@ const GenerateHashFromMatchers = (
|
||||
},
|
||||
});
|
||||
|
||||
const Placeholder: FC<PlaceholderProps<OptionT>> = (props) => {
|
||||
const Placeholder: FC<PlaceholderProps<OptionT, true>> = (props) => {
|
||||
return (
|
||||
<div>
|
||||
<components.Placeholder {...props} />
|
||||
@@ -39,7 +39,7 @@ const Placeholder: FC<PlaceholderProps<OptionT>> = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
interface ValueContainerPropsT extends ValueContainerProps<OptionT> {
|
||||
interface ValueContainerPropsT extends ValueContainerProps<OptionT, true> {
|
||||
selectProps: {
|
||||
silenceFormStore: SilenceFormStore;
|
||||
matcher: MatcherWithIDT;
|
||||
@@ -51,7 +51,7 @@ const ValueContainer: FC<ValueContainerPropsT> = ({
|
||||
selectProps,
|
||||
...props
|
||||
}) => (
|
||||
<components.ValueContainer {...(props as ValueContainerProps<OptionT>)}>
|
||||
<components.ValueContainer {...(props as ValueContainerProps<OptionT, true>)}>
|
||||
{selectProps.matcher.values.length > 0 ? (
|
||||
<MatchCounter
|
||||
key={GenerateHashFromMatchers(
|
||||
@@ -108,7 +108,9 @@ const LabelValueInput: FC<{
|
||||
hideSelectedOptions
|
||||
isMulti
|
||||
components={{
|
||||
ValueContainer: ValueContainer as FC<ValueContainerProps<OptionT>>,
|
||||
ValueContainer: ValueContainer as FC<
|
||||
ValueContainerProps<OptionT, true>
|
||||
>,
|
||||
Placeholder: Placeholder,
|
||||
}}
|
||||
silenceFormStore={silenceFormStore}
|
||||
|
||||
Reference in New Issue
Block a user