Skip to content

Commit

Permalink
front: cleanup outdated todo and class names in rolling stock editor
Browse files Browse the repository at this point in the history
Signed-off-by: Alice K. <[email protected]>
  • Loading branch information
Alice K. committed Feb 20, 2025
1 parent cdb9804 commit 44cff13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ export const RollingStockEditorParameterForm = ({
</div>
<div className="d-flex flex-column justify-content-between col-xl-4 pb-3">
<div className="d-flex flex-xl-column mb-2 mt-3 mt-xl-0">
<span className=" ml-xl-2 text-gray-dark">{t('rollingResistance')}</span>
<span className=" ml-4 text-muted">{t('rollingResistanceFormula')}</span>
<span className="ml-xl-2 text-gray-dark">{t('rollingResistance')}</span>
<span className="ml-4 text-muted">{t('rollingResistanceFormula')}</span>
</div>
<RollingStockEditorParameterFormColumn
rollingStockValues={rollingStockValues}
Expand Down Expand Up @@ -365,7 +365,7 @@ export const RollingStockEditorOnboardSystemEquipmentForm = ({

return (
<div className="d-lg-flex rollingstock-editor-input-container px-1 pb-3">
<div className={cx('d-flex', 'justify-content-space-around', 'mr-2')}>
<div className="d-flex justify-content-space-around mr-2">
<label className="signaling-systems-label col-xl-3" htmlFor="supportedSignalingSystems">
{t('supportedSignalingSystems')}
</label>
Expand Down
8 changes: 0 additions & 8 deletions front/src/modules/rollingStock/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import type {
} from 'common/api/osrdEditoastApi';

export type RollingStockParametersValidValues = {
// TODO: remove this line in the type
[key: string]:
| string
| number
| null
| RollingStock['power_restrictions']
| string[]
| MultiUnitsParameter;
railjsonVersion: string;
name: string;
detail: string;
Expand Down

0 comments on commit 44cff13

Please sign in to comment.