Skip to content

Commit

Permalink
front: rename RollingStockSelector/const/const.ts to colors.ts
Browse files Browse the repository at this point in the history
The constant file only contains colors now

(and eslint was complaning about exporting a single value)

Signed-off-by: Tristram Gräbener <[email protected]>
  • Loading branch information
Tristramg committed Feb 5, 2025
1 parent 7c0b70f commit 29ccc04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cx from 'classnames';
import { useTranslation } from 'react-i18next';

import type { RollingStock, Comfort } from 'common/api/osrdEditoastApi';
import { COLORS } from 'modules/rollingStock/components/RollingStockSelector/consts/consts';
import COLORS from 'modules/rollingStock/components/RollingStockSelector/consts/colors';
import { comfort2pictogram } from 'modules/rollingStock/components/RollingStockSelector/RollingStockHelpers';
import { STANDARD_COMFORT_LEVEL, THERMAL_TRACTION_IDENTIFIER } from 'modules/rollingStock/consts';
import type { ParsedCurve, TransformedCurves } from 'modules/rollingStock/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// key = backgroundColor, value = text foreground color
export const COLORS = {
export default {
'#009aa6': '#fff',
'#d2e100': '#333',
'#82be00': '#333',
Expand Down

0 comments on commit 29ccc04

Please sign in to comment.