This repository was archived by the owner on Mar 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ let selector = formValueSelector('basicInput')
88
99@connect ( state => ( {
1010 enTempsPartiel : selector ( state , 'tempsDeTravail' ) == 'temps_partiel' ,
11+ heuresParSemaine : selector ( state , 'heuresParSemaine' )
1112} ) , dispatch => ( {
1213 changeCodeINSEE : ( value ) =>
1314 dispatch ( change ( 'basicInput' , 'codeINSEE' , value ) ) ,
@@ -19,7 +20,13 @@ let selector = formValueSelector('basicInput')
1920} )
2021export default class BasicInput extends Component {
2122 render ( ) {
22- let { enTempsPartiel} = this . props
23+ let
24+ { enTempsPartiel , heuresParSemaine } = this . props ,
25+ SMIC = 1480.27 ,
26+ salaireMinimum = Math . round (
27+ ! enTempsPartiel ? SMIC : SMIC * ( heuresParSemaine / 35 )
28+ )
29+
2330 return (
2431 < form className = "basic-input" >
2532 Mon
@@ -55,7 +62,7 @@ export default class BasicInput extends Component {
5562 €
5663 </ label >
5764 < span className = "input-help" > Rémunération totale< br />
58- < em > (min. 1480 €)</ em > , dont primes.
65+ < em > (min. { salaireMinimum } €)</ em > , dont primes.
5966 </ span >
6067
6168 < Field component = "select" name = "typeSalaireEntré" >
You can’t perform that action at this time.
0 commit comments