Skip to content

Commit

Permalink
Merge pull request #560 from InseeFr/fix/libelle-envoyer-mes-reponses
Browse files Browse the repository at this point in the history
change label of a button
  • Loading branch information
ddecrulle authored Jun 19, 2024
2 parents 1300b3d + 6adfc19 commit 294d47c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/navigation/Continuer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getStatus(
saving: boolean
) {
if (isLastPage) {
return 'Envoyer mes réponses';
return 'Valider mes réponses';
}
if (saving) {
return 'Vos données sont en cours de sauvegarde';
Expand Down Expand Up @@ -58,9 +58,10 @@ export function Continuer(props: OrchestratedElement) {
const navigate = useNavigate();
const saveSuData = useSaveSurveyUnitStateData();
const { unit, survey } = useParams();
const buttonContent = waiting || saving
? `Chargement`
: getStatus(getComponents, isLastPage ?? false, saving);
const buttonContent =
waiting || saving
? `Chargement`
: getStatus(getComponents, isLastPage ?? false, saving);

const handleClick = useCallback(
(event: React.MouseEvent) => {
Expand Down

0 comments on commit 294d47c

Please sign in to comment.