Skip to content

Commit

Permalink
[Theme] update colors with new monitor-ui version
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Sep 25, 2023
1 parent 1613a7e commit 3ad580e
Show file tree
Hide file tree
Showing 34 changed files with 305 additions and 401 deletions.
340 changes: 134 additions & 206 deletions frontend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@dnd-kit/core": "6.0.8",
"@dnd-kit/modifiers": "6.0.1",
"@mtes-mct/monitor-ui": "9.1.1",
"@mtes-mct/monitor-ui": "10.0.0",
"@reduxjs/toolkit": "1.9.3",
"@sentry/browser": "7.55.2",
"@sentry/react": "7.52.1",
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/features/Backoffice/menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// TODO Remove temporary `as any` and `@ts-ignore` (fresh migration to TS).

import { THEME } from '@mtes-mct/monitor-ui'
import { Link, useMatch } from 'react-router-dom'
import styled from 'styled-components'

import { COLORS } from '../../../constants/constants'
import { theme } from '../../../ui/theme'
import { ReactComponent as LayersSVG } from '../../icons/Couches.svg'
import { ReactComponent as FleetSVG } from '../../icons/Label_segment_de_flotte_white.svg'
import { ReactComponent as ControlObjectivesSVG } from '../../icons/objectifs_controle.svg'
Expand All @@ -19,7 +19,7 @@ export function Menu() {
<Title>Backoffice</Title>
<MenuLink
style={{
background: onRegulationPage ? theme.color.blueGray[100] : 'none'
background: onRegulationPage ? THEME.color.blueGray : 'none'
}}
title="Zones réglementaires"
to="/backoffice/regulation"
Expand All @@ -32,7 +32,7 @@ export function Menu() {
</MenuLink>
<MenuLink
style={{
background: onControlObjectivePage ? theme.color.blueGray[100] : 'none'
background: onControlObjectivePage ? THEME.color.blueGray : 'none'
}}
title="Objectifs de contrôle"
to="/backoffice/control_objectives"
Expand All @@ -45,7 +45,7 @@ export function Menu() {
</MenuLink>
<MenuLink
style={{
background: onFleetSegmentsPage ? theme.color.blueGray[100] : 'none'
background: onFleetSegmentsPage ? THEME.color.blueGray : 'none'
}}
title="Segments de flotte"
to="/backoffice/fleet_segments"
Expand Down
Loading

0 comments on commit 3ad580e

Please sign in to comment.