feat: search input
This commit is contained in:
@@ -11,7 +11,10 @@ type RestProps = {
|
||||
}
|
||||
type Props = Omit<ObjectSelectProps<ProductSchema>, 'data'> & RestProps;
|
||||
const ProductSelect: FC<Props> = (props: Props) => {
|
||||
const {products} = useProductsList({clientId: props.clientId});
|
||||
const {products} = useProductsList({
|
||||
clientId: props.clientId,
|
||||
searchInput: ""
|
||||
});
|
||||
const restProps = omit(props, ['clientId']);
|
||||
const renderOption: SelectProps['renderOption'] = (item) => {
|
||||
const product = products.find(product => product.id == parseInt(item.option.value));
|
||||
|
||||
Reference in New Issue
Block a user