Commit 6e7ad63 1 parent 0a86a62 commit 6e7ad63 Copy full SHA for 6e7ad63
File tree 1 file changed +6
-6
lines changed
front/src/applications/osrd/components/Simulation/Allowances
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function StandardAllowanceDefault(props) {
28
28
title,
29
29
changeType,
30
30
typeKey,
31
- getBaseValue
31
+ getBaseValue,
32
32
} = props ;
33
33
34
34
const [ value , setValue ] = useState ( {
@@ -37,8 +37,6 @@ export default function StandardAllowanceDefault(props) {
37
37
} ) ;
38
38
const [ distribution , setDistribution ] = useState ( distributionsTypes [ 0 ] ) ;
39
39
40
-
41
-
42
40
const debouncedChangeType = useMemo (
43
41
( ) =>
44
42
debounce (
@@ -198,14 +196,16 @@ export default function StandardAllowanceDefault(props) {
198
196
} , [ getBaseValue , typeKey ] ) ;
199
197
200
198
return (
201
- < div className = "row w-100 mareco" >
202
- < div className = "col-md-2 text-normal" > { title || t ( 'sandardAllowancesWholePath' ) } </ div >
199
+ < div className = { `${ options . immediateMutation ? 'mareco' : 'row w-100 mareco' } ` } >
200
+ < div className = { `${ options . immediateMutation ? 'text-normal' : 'col-md-2 text-normal' } ` } >
201
+ { title || t ( 'sandardAllowancesWholePath' ) }
202
+ </ div >
203
203
204
204
< div className = "col" >
205
205
< div className = "row" >
206
206
{ options . setDistribution && (
207
207
< >
208
- < div className = "col-md-2 text-normal" > { t ( 'Valeur par défault ' ) } </ div >
208
+ < div className = "col-md-2 text-normal" > { t ( 'perDefaultValue ' ) } </ div >
209
209
< div className = "col-md-4" >
210
210
< SelectSNCF
211
211
id = "distributionTypeSelector"
You can’t perform that action at this time.
0 commit comments