Skip to content

Commit

Permalink
utiliser des champs float pour les dépenses
Browse files Browse the repository at this point in the history
  • Loading branch information
freddycoder committed Sep 3, 2024
1 parent 0f318d2 commit a222e38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/features/outcome/Outcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,31 @@ export const Outcome = () => {
</div>
<div className={styles.row}>
<InputField
type="number"
type="float"
label={t('MunicipalTaxes')}
ariaLabel={t('MunicipalTaxes')}
value={simulation.municipalTaxes}
onChange={(e) => { dispatch(setMinucipalTaxes(parseInt(e.target.value))) }}
onChange={(e) => { dispatch(setMinucipalTaxes(parseFloat(e.target.value))) }}
tooltip={t('MunicipalTaxesTooltip')}
></InputField>
</div>
<div className={styles.row}>
<InputField
type="number"
type="float"
label={t('SchoolTaxes')}
ariaLabel={t('SchoolTaxes')}
value={simulation.scollarTaxes}
onChange={(e) => { dispatch(setScollarTaxes(parseInt(e.target.value))) }}
onChange={(e) => { dispatch(setScollarTaxes(parseFloat(e.target.value))) }}
tooltip={t('SchoolTaxesTooltip')}
></InputField>
</div>
<div className={styles.row}>
<InputField
type="number"
type="float"
label={t('EnergyCost')}
ariaLabel={t('EnergyCost')}
value={simulation.energyCost}
onChange={(e) => { dispatch(setEnergyCost(parseInt(e.target.value))) }}
onChange={(e) => { dispatch(setEnergyCost(parseFloat(e.target.value))) }}
tooltip={t('EnergyCostTooltip')}
></InputField>
</div>
Expand Down

0 comments on commit a222e38

Please sign in to comment.