refactor(departements): champ departements to use simple select

This commit is contained in:
Paul Chavard 2022-12-20 21:29:18 +01:00
parent f7c1dff22a
commit e0b0a42bc3
5 changed files with 115 additions and 19 deletions

View file

@ -1,9 +1,7 @@
import React from 'react';
import { QueryClientProvider } from 'react-query';
import { matchSorter } from 'match-sorter';
import ComboSearch, { ComboSearchProps } from './ComboSearch';
import { queryClient } from './shared/queryClient';
type DepartementResult = { code: string; nom: string };
@ -42,13 +40,3 @@ export function ComboDepartementsSearch({
/>
);
}
export default function ComboDepartementsSearchDefault(
params: ComboDepartementsSearchProps
) {
return (
<QueryClientProvider client={queryClient}>
<ComboDepartementsSearch {...params} />
</QueryClientProvider>
);
}