Skip to content

Commit

Permalink
[Theme] Mise à jour des couleurs (#2541)
Browse files Browse the repository at this point in the history
Mise à jour des couleurs suite à la nouvelle gestion des couleurs
accentuées côté Monitor-ui (`blueYonder[100]` devient `blueYonder` et
`blueYonder[25]`devient `blueYonder25`)

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
ivangabriele authored Sep 26, 2023
2 parents 31299dc + 97971e7 commit c91fdde
Show file tree
Hide file tree
Showing 34 changed files with 172 additions and 203 deletions.
14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.4.0",
"@mtes-mct/monitor-ui": "10.0.0",
"@reduxjs/toolkit": "1.9.6",
"@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 c91fdde

Please sign in to comment.