@@ -18,7 +18,7 @@ import {
18
18
} from 'reducers/osrdconf' ;
19
19
import { StandardAllowance } from 'applications/operationalStudies/consts' ;
20
20
import { AllowanceValue } from 'common/api/osrdEditoastApi' ;
21
- import { ALLOWANCE_UNITS_KEYS } from './allowancesConsts' ;
21
+ import { ALLOWANCE_UNITS_KEYS } from '../../../applications/stdcm/components /allowancesConsts' ;
22
22
23
23
const STDCMAllowances = ( ) => {
24
24
const { t } = useTranslation ( 'allowances' ) ;
@@ -29,13 +29,11 @@ const STDCMAllowances = () => {
29
29
const standardAllowanceTypes = [
30
30
{
31
31
id : 'percentage' ,
32
- label : t ? t ( 'allowanceTypes.percentage' ) : '' ,
33
- unit : ALLOWANCE_UNITS_KEYS . percentage ,
32
+ label : ALLOWANCE_UNITS_KEYS . percentage ,
34
33
} ,
35
34
{
36
35
id : 'time_per_distance' ,
37
- label : t ? t ( 'allowanceTypes.time_per_distance' ) : '' ,
38
- unit : ALLOWANCE_UNITS_KEYS . time_per_distance ,
36
+ label : ALLOWANCE_UNITS_KEYS . time_per_distance ,
39
37
} ,
40
38
] ;
41
39
@@ -86,6 +84,8 @@ const STDCMAllowances = () => {
86
84
handleType = { onchangeType }
87
85
value = { stdcmStandardAllowance ?. value || 0 }
88
86
type = { stdcmStandardAllowance ?. type || '' }
87
+ orientation = "right"
88
+ typeValue = "number"
89
89
condensed
90
90
sm
91
91
/>
0 commit comments