-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lodeom): ajout de messages d'avertissement adaptés au barème
- Loading branch information
Showing
4 changed files
with
79 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 29 additions & 5 deletions
34
site/source/pages/simulateurs/lodeom/components/WarningSalaireTrans.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
import { Trans } from 'react-i18next' | ||
|
||
import { useBaremeLodeom } from '@/hooks/useBaremeLodeom' | ||
|
||
export default function WarningSalaireTrans() { | ||
const { currentBarème } = useBaremeLodeom() | ||
|
||
return ( | ||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité"> | ||
Le barème de compétitivité concerne uniquement les salaires inférieurs à | ||
2,2 SMIC. C'est-à-dire, pour 2024, une rémunération totale qui ne dépasse | ||
pas <strong>3 964 €</strong> bruts par mois. | ||
</Trans> | ||
<> | ||
{currentBarème === 'barème compétitivité' && ( | ||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité"> | ||
Le barème de compétitivité concerne uniquement les salaires inférieurs | ||
à 2,2 SMIC. C'est-à-dire, pour 2024, une rémunération totale qui ne | ||
dépasse pas <strong>3 964 €</strong> bruts par mois. | ||
</Trans> | ||
)} | ||
{currentBarème === 'barème compétitivité renforcée' && ( | ||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité-renforcée"> | ||
Le barème de compétitivité renforcée concerne uniquement les salaires | ||
inférieurs à 2,7 SMIC. C'est-à-dire, pour 2024, une rémunération | ||
totale qui ne dépasse pas <strong>4 864,86 €</strong> bruts | ||
par mois. | ||
</Trans> | ||
)} | ||
{currentBarème === 'barème innovation et croissance' && ( | ||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-innovation-croissance"> | ||
Le barème d'innovation et croissance concerne uniquement les salaires | ||
inférieurs à 3,5 SMIC. C'est-à-dire, pour 2024, une rémunération | ||
totale qui ne dépasse pas <strong>6 306,30 €</strong> bruts | ||
par mois. | ||
</Trans> | ||
)} | ||
</> | ||
) | ||
} |