@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
4
4
import { styled } from 'styled-components'
5
5
6
6
import NumberInput from '@/components/conversation/NumberInput'
7
- import MontantAvecRépartition from '@/components/RéductionDeCotisations/MontantAvecRépartition '
7
+ import Montant from '@/components/RéductionDeCotisations/Montant '
8
8
import MonthOptions from '@/components/RéductionDeCotisations/MonthOptions'
9
9
import RuleLink from '@/components/RuleLink'
10
10
import { useEngine } from '@/components/utils/EngineContext'
@@ -31,6 +31,7 @@ type Props = {
31
31
onOptionsChange : ( monthIndex : number , options : Options ) => void
32
32
warningCondition : PublicodesExpression
33
33
warningTooltip : ReactNode
34
+ withRépartition ?: boolean
34
35
mobileVersion ?: boolean
35
36
}
36
37
@@ -43,6 +44,7 @@ export default function RéductionMois({
43
44
onOptionsChange,
44
45
warningCondition,
45
46
warningTooltip,
47
+ withRépartition = true ,
46
48
mobileVersion = false ,
47
49
} : Props ) {
48
50
const { t, i18n } = useTranslation ( )
@@ -113,7 +115,7 @@ export default function RéductionMois({
113
115
114
116
const MontantRéduction = ( ) => {
115
117
return (
116
- < MontantAvecRépartition
118
+ < Montant
117
119
id = { `${ dottedName . replace ( / \s | \. / g, '_' ) } -${ monthName } ` }
118
120
dottedName = { dottedName }
119
121
rémunérationBrute = { data . rémunérationBrute }
@@ -123,20 +125,22 @@ export default function RéductionMois({
123
125
language = { language }
124
126
warningCondition = { warningCondition }
125
127
warningTooltip = { warningTooltip }
128
+ withRépartition = { withRépartition }
126
129
/>
127
130
)
128
131
}
129
132
130
133
const MontantRégularisation = ( ) => {
131
134
return (
132
- < MontantAvecRépartition
135
+ < Montant
133
136
id = { `${ dottedName . replace ( / \s | \. / g, '_' ) } __régularisation-${ monthName } ` }
134
137
dottedName = { dottedName }
135
138
rémunérationBrute = { data . rémunérationBrute }
136
139
réduction = { data . régularisation . value }
137
140
répartition = { data . régularisation . répartition }
138
141
displayedUnit = { displayedUnit }
139
142
language = { language }
143
+ withRépartition = { withRépartition }
140
144
/>
141
145
)
142
146
}
0 commit comments