From 13247dd409c69c0bbdbea67104498bff42ace447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Soulas?= Date: Wed, 3 Jul 2024 16:21:10 +0200 Subject: [PATCH] feat(app): remove CANDIDATE_APP_FILTER_DISTANCE feature flag --- .../OrganismFilters/OrganismFilters.tsx | 42 +++++++++---------- .../reva-app/src/pages/ProjectOrganisms.tsx | 3 -- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git a/packages/reva-app/src/components/organisms/OrganismFilters/OrganismFilters.tsx b/packages/reva-app/src/components/organisms/OrganismFilters/OrganismFilters.tsx index 0f70ea911..e1af3f0e6 100644 --- a/packages/reva-app/src/components/organisms/OrganismFilters/OrganismFilters.tsx +++ b/packages/reva-app/src/components/organisms/OrganismFilters/OrganismFilters.tsx @@ -25,11 +25,9 @@ interface filters { export const OrganismFilters = ({ onSearch, - filterDistanceIsActive, filters, }: { onSearch: (filters: filters) => void; - filterDistanceIsActive: boolean; filters: filters; }) => { const [zip, setZip] = useState(""); @@ -110,27 +108,25 @@ export const OrganismFilters = ({ visio-conférence.

- {filterDistanceIsActive && ( - { - onSearch({ - ...filters, - organismSearchZip: zip, - }); - }} - onChangeSearchPmr={(pmr) => { - onSearch({ - ...filters, - organismSearchPmr: pmr, - }); - }} - zip={zip} - setZip={setZip} - pmr={pmr} - setPmr={setPmr} - /> - )} + { + onSearch({ + ...filters, + organismSearchZip: zip, + }); + }} + onChangeSearchPmr={(pmr) => { + onSearch({ + ...filters, + organismSearchPmr: pmr, + }); + }} + zip={zip} + setZip={setZip} + pmr={pmr} + setPmr={setPmr} + />