Skip to content

Commit

Permalink
feat(app): remove CANDIDATE_APP_FILTER_DISTANCE feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Jul 3, 2024
1 parent dc8a721 commit 13247dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ interface filters {

export const OrganismFilters = ({
onSearch,
filterDistanceIsActive,
filters,
}: {
onSearch: (filters: filters) => void;
filterDistanceIsActive: boolean;
filters: filters;
}) => {
const [zip, setZip] = useState("");
Expand Down Expand Up @@ -110,27 +108,25 @@ export const OrganismFilters = ({
visio-conférence.
</p>
</modalDistanceInfo.Component>
{filterDistanceIsActive && (
<OrganismDistanceFilter
disabled={!searchHasOnSiteSelected}
onChangeSearchZip={(zip) => {
onSearch({
...filters,
organismSearchZip: zip,
});
}}
onChangeSearchPmr={(pmr) => {
onSearch({
...filters,
organismSearchPmr: pmr,
});
}}
zip={zip}
setZip={setZip}
pmr={pmr}
setPmr={setPmr}
/>
)}
<OrganismDistanceFilter
disabled={!searchHasOnSiteSelected}
onChangeSearchZip={(zip) => {
onSearch({
...filters,
organismSearchZip: zip,
});
}}
onChangeSearchPmr={(pmr) => {
onSearch({
...filters,
organismSearchPmr: pmr,
});
}}
zip={zip}
setZip={setZip}
pmr={pmr}
setPmr={setPmr}
/>
<hr />
<div className="flex justify-center">
<Button
Expand Down
3 changes: 0 additions & 3 deletions packages/reva-app/src/pages/ProjectOrganisms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ export const ProjectOrganisms: FC<Props> = ({ mainService }) => {
organismSearchZip,
organismSearchPmr,
}}
filterDistanceIsActive={activeFeatures.includes(
"CANDIDATE_APP_FILTER_DISTANCE",
)}
/>
</div>
<div className="lg:w-2/3">
Expand Down

0 comments on commit 13247dd

Please sign in to comment.