Skip to content
Snippets Groups Projects
Commit 4e3ad8b5 authored by Loïc Poullain's avatar Loïc Poullain
Browse files

Only show searchCommune on ?search

parent ab3e991c
No related branches found
No related tags found
1 merge request!81Ajouter l'option recherche de communes
......@@ -26,6 +26,7 @@ class Results extends PureComponent<Props> {
const { communesTypes } = this.props;
const url = new URLSearchParams(window.location.search);
const isDsuVisible = url.has("dsu");
const isSearchVisible = url.has("search");
return (
<div className={styles.container}>
<Grid container spacing={3}>
......@@ -54,9 +55,11 @@ class Results extends PureComponent<Props> {
/>
</Grid>
))}
{isSearchVisible && (
<Grid item lg={4} md={6} sm={6} xl={3} xs={12}>
<CommuneSearch />
</Grid>
)}
</Grid>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment