From 776aca4899d69ef35dd7e39740ffc3b1847e1ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Huchet?= Date: Mon, 19 Feb 2024 16:37:13 +0100 Subject: [PATCH] fix: suppression de l'ancien reporting --- dashboard/src/components/drawer.js | 4 ++-- dashboard/src/scenes/report/view.js | 22 ---------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/dashboard/src/components/drawer.js b/dashboard/src/components/drawer.js index 507e2f55f..15a759254 100644 --- a/dashboard/src/components/drawer.js +++ b/dashboard/src/components/drawer.js @@ -76,7 +76,7 @@ const Drawer = () => { )} - {['admin', 'normal', 'restricted-access'].includes(role) && ( + {process.env.REACT_APP_TEST_PLAYWRIGHT === 'true' && ['admin', 'normal', 'restricted-access'].includes(role) && ( <>
  • @@ -89,7 +89,7 @@ const Drawer = () => { <>
  • - Comptes rendus BETA + Comptes rendus
  • diff --git a/dashboard/src/scenes/report/view.js b/dashboard/src/scenes/report/view.js index 0eacc5268..976f3a67b 100644 --- a/dashboard/src/scenes/report/view.js +++ b/dashboard/src/scenes/report/view.js @@ -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'; @@ -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', { @@ -400,26 +398,6 @@ const View = () => { )} - setShowWarning(false)}> - setShowWarning(false)} /> - -

    - Ce module est en cours de développement. -
    - Il est possible que vous rencontriez des bugs. -
    - N'hésitez pas à nous faire remonter les problèmes rencontrés. -
    -
    - Merci beaucoup ! -

    -
    - - - -
    ); };