Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Sep 28, 2023
1 parent 6530f69 commit 5f8abf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/src/scenes/person/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import useSearchParamState from '../../services/useSearchParamState';
import { useDataLoader } from '../../components/DataLoader';
import ExclamationMarkButton from '../../components/tailwind/ExclamationMarkButton';
import { customFieldsMedicalFileSelector } from '../../recoil/medicalFiles';
import useMinimumWidth from '../../services/useMinimumWidth';

const limit = 20;

Expand Down Expand Up @@ -92,6 +93,7 @@ const filterPersonsWithAllFieldsSelector = selector({
const List = () => {
useTitle('Personnes');
useDataLoader({ refreshOnMount: true });
const isDesktop = useMinimumWidth('sm');
const filterPersonsWithAllFields = useRecoilValue(filterPersonsWithAllFieldsSelector);

const [search, setSearch] = useSearchParamState('search', '');
Expand Down Expand Up @@ -142,7 +144,7 @@ const List = () => {
</div>
</div>
</div>
<details className="[&_summary]:open:tw-opacity-10">
<details open={isDesktop} className="[&_summary]:open:tw-opacity-10">
<summary className="tw-my-2 tw-mx-4">Recherche et filtres...</summary>
<div className="tw-mb-5 tw-flex tw-flex-wrap ">
<div className="tw-mb-5 tw-flex tw-w-full tw-items-start tw-justify-start">
Expand Down

0 comments on commit 5f8abf9

Please sign in to comment.