Skip to content

Commit

Permalink
fix: suppression de l'ancien reporting (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Feb 19, 2024
1 parent 09d7f39 commit 7b21ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/components/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Drawer = () => {
</NavLink>
</li>
)}
{['admin', 'normal', 'restricted-access'].includes(role) && (
{process.env.REACT_APP_TEST_PLAYWRIGHT === 'true' && ['admin', 'normal', 'restricted-access'].includes(role) && (
<>
<li>
<NavLink to="/report" activeClassName="active">
Expand All @@ -90,7 +90,7 @@ const Drawer = () => {
<>
<li>
<NavLink to="/report-new" activeClassName="active">
Comptes rendus <span className="tw-ml-1 tw-rounded-full tw-bg-main tw-px-2 tw-py-1 tw-text-xs tw-text-white">BETA</span>
Comptes rendus
</NavLink>
</li>
</>
Expand Down
22 changes: 0 additions & 22 deletions dashboard/src/scenes/report/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useMemo } from 'react';
import { useParams } from 'react-router-dom';
import { addOneDay, dateForDatePicker, formatDateWithNameOfDay } from '../../services/date';
import { HeaderStyled, Title as HeaderTitle } from '../../components/header';
import { ModalBody, ModalContainer, ModalFooter, ModalHeader } from '../../components/tailwind/Modal';

import dayjs from 'dayjs';
import { TODO } from '../../recoil/actions';
Expand Down Expand Up @@ -211,7 +210,6 @@ const View = () => {
const teams = useRecoilValue(teamsState);
const [viewAllOrganisationData, setViewAllOrganisationData] = useLocalStorage('reports-allOrg', teams.length === 1);
const [selectedTeamIds, setSelectedTeamIds] = useLocalStorage('reports-teams', [currentTeam._id]);
const [showWarning, setShowWarning] = useLocalStorage('reports-beta-warnign', true);

const [preset, setPreset, removePreset] = useLocalStorage('reports-date-preset', null);
let [period, setPeriod] = useLocalStorage('reports-period', {
Expand Down Expand Up @@ -392,26 +390,6 @@ const View = () => {
</div>
</div>
)}
<ModalContainer open={showWarning} size="prose" onClose={() => setShowWarning(false)}>
<ModalHeader title="Comptes-rendus - Version Beta" onClose={() => setShowWarning(false)} />
<ModalBody className="tw-p-4">
<p>
Ce module est en cours de développement.
<br />
Il est possible que vous rencontriez des bugs.
<br />
N'hésitez pas à nous faire remonter les problèmes rencontrés.
<br />
<br />
Merci beaucoup !
</p>
</ModalBody>
<ModalFooter>
<button type="button" onClick={() => setShowWarning(false)} className="button-submit">
🧐 Bien compris
</button>
</ModalFooter>
</ModalContainer>
</>
);
};
Expand Down

0 comments on commit 7b21ee9

Please sign in to comment.