Skip to content

Commit f9ddfe1

Browse files
Alice K.Synar
Alice K.
authored andcommitted
front: cleanup outdated todo and class names in rolling stock editor
Signed-off-by: Alice K. <alice.khoudli@gmail.com>
1 parent e039ef2 commit f9ddfe1

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ export const RollingStockEditorParameterForm = ({
304304
</div>
305305
<div className="d-flex flex-column justify-content-between col-xl-4 pb-3">
306306
<div className="d-flex flex-xl-column mb-2 mt-3 mt-xl-0">
307-
<span className=" ml-xl-2 text-gray-dark">{t('rollingResistance')}</span>
308-
<span className=" ml-4 text-muted">{t('rollingResistanceFormula')}</span>
307+
<span className="ml-xl-2 text-gray-dark">{t('rollingResistance')}</span>
308+
<span className="ml-4 text-muted">{t('rollingResistanceFormula')}</span>
309309
</div>
310310
<RollingStockEditorParameterFormColumn
311311
rollingStockValues={rollingStockValues}
@@ -365,7 +365,7 @@ export const RollingStockEditorOnboardSystemEquipmentForm = ({
365365

366366
return (
367367
<div className="d-lg-flex rollingstock-editor-input-container px-1 pb-3">
368-
<div className={cx('d-flex', 'justify-content-space-around', 'mr-2')}>
368+
<div className="d-flex justify-content-space-around mr-2">
369369
<label className="signaling-systems-label col-xl-3" htmlFor="supportedSignalingSystems">
370370
{t('supportedSignalingSystems')}
371371
</label>

front/src/modules/rollingStock/types.ts

-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import type {
77
} from 'common/api/osrdEditoastApi';
88

99
export type RollingStockParametersValidValues = {
10-
// TODO: remove this line in the type
11-
[key: string]:
12-
| string
13-
| number
14-
| null
15-
| RollingStock['power_restrictions']
16-
| string[]
17-
| MultiUnitsParameter;
1810
railjsonVersion: string;
1911
name: string;
2012
detail: string;

0 commit comments

Comments
 (0)