refactor: simplifie la traduction dans EffectifSwitch

pull/3230/head
Alice Dahan 2024-11-15 16:58:32 +01:00 committed by liliced
parent fd65963a9f
commit 5254ec2f2f
1 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import { DottedName } from 'modele-social'
import { useEffect, useState } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { useTranslation } from 'react-i18next'
import { useDispatch } from 'react-redux'
import { useEngine } from '@/components/utils/EngineContext'
@ -29,12 +29,8 @@ export default function EffectifSwitch() {
}}
aria-label={t("Effectif de l'entreprise")}
>
<Radio value="10">
<Trans>Moins de 50 salariés</Trans>
</Radio>
<Radio value="100">
<Trans>Plus de 50 salariés</Trans>
</Radio>
<Radio value="10">{t('Moins de 50 salariés')}</Radio>
<Radio value="100">{t('Plus de 50 salariés')}</Radio>
</ToggleGroup>
)
}