2020-10-07 17:41:51 +02:00
|
|
|
import React from 'react';
|
2021-02-16 13:54:16 +01:00
|
|
|
import { QueryClientProvider } from 'react-query';
|
2020-10-07 17:41:51 +02:00
|
|
|
|
|
|
|
import ComboSearch from './ComboSearch';
|
2021-02-16 13:54:16 +01:00
|
|
|
import { queryClient } from './shared/queryClient';
|
2020-10-07 17:41:51 +02:00
|
|
|
|
2022-01-05 11:34:43 +01:00
|
|
|
function ComboRegionsSearch(props) {
|
2020-10-07 17:41:51 +02:00
|
|
|
return (
|
2021-02-16 13:54:16 +01:00
|
|
|
<QueryClientProvider client={queryClient}>
|
2020-10-07 17:41:51 +02:00
|
|
|
<ComboSearch
|
|
|
|
scope="regions"
|
|
|
|
minimumInputLength={0}
|
|
|
|
transformResult={({ code, nom }) => [code, nom]}
|
2022-01-05 11:34:43 +01:00
|
|
|
{...props}
|
2020-10-07 17:41:51 +02:00
|
|
|
/>
|
2021-02-16 13:54:16 +01:00
|
|
|
</QueryClientProvider>
|
2020-10-07 17:41:51 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ComboRegionsSearch;
|