Skip to content

Commit

Permalink
[Dashboard] hide menu button on side_window
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Oct 8, 2024
1 parent 5719e0b commit 0e7efe9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions frontend/src/features/SideWindow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DashboardForm } from '@features/Dashboard/components/DashboardForm'
import { DashboardsList } from '@features/Dashboard/components/DashboardsList'
import { DashboardsNavBar } from '@features/Dashboard/components/DashboardsNavBar'
import { isDashboardEnabled } from '@features/Dashboard/utils'
import { REPORTING_EVENT_UNSYNCHRONIZED_PROPERTIES } from '@features/Reportings/components/ReportingForm/constants'
import { useListenReportingEventUpdates } from '@features/Reportings/components/ReportingForm/hooks/useListenReportingEventUpdates'
import { ReportingsList } from '@features/Reportings/components/ReportingsList'
Expand Down Expand Up @@ -119,12 +120,14 @@ export function SideWindow() {
onClick={() => navigate(generatePath(sideWindowPaths.REPORTINGS))}
title="Signalements"
/>
<SideMenu.Button
Icon={Icon.Bullseye}
isActive={isDashboardsButtonIsActive}
onClick={() => navigate(generatePath(sideWindowPaths.DASHBOARDS))}
title="Tableaux de bord"
/>
{isDashboardEnabled() && (
<SideMenu.Button
Icon={Icon.Bullseye}
isActive={isDashboardsButtonIsActive}
onClick={() => navigate(generatePath(sideWindowPaths.DASHBOARDS))}
title="Tableaux de bord"
/>
)}
</SideMenu>

<StyledRouteContainer>
Expand Down

0 comments on commit 0e7efe9

Please sign in to comment.