export const SearchBarTypeField = () =>
<Field
name='type'
- component={NativeSelectField}
+ component={NativeSelectField as any}
items={[
{ key: '', value: 'Any' },
{ key: ResourceKind.COLLECTION, value: 'Collection' },
})))
}))((props: SearchBarClusterFieldProps) => <Field
name='cluster'
- component={NativeSelectField}
+ component={NativeSelectField as any}
items={props.clusters}/>
);
export const SearchBarDateFromField = () =>
<Field
name='dateFrom'
- component={DateTextField} />;
+ component={DateTextField as any} />;
export const SearchBarDateToField = () =>
<Field
name='dateTo'
- component={DateTextField} />;
+ component={DateTextField as any} />;
export const SearchBarPropertiesField = () =>
<FieldArray
name="properties"
- component={SearchBarAdvancedPropertiesView} />;
+ component={SearchBarAdvancedPropertiesView as any} />;
export const SearchBarKeyField = () =>
<PropertyKeyField skipValidation={true} />;
export const SearchBarQuerySearchField = () =>
<Field
name='queryName'
- component={TextField}
+ component={TextField as any}
label="Query name" />;