diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 374f39f..aaea445 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -64,12 +64,6 @@ export function Footer({ className }: Readonly<{ className?: string }>) { to: "/securite", }, }, - { - text: t("cookies"), - linkProps: { - to: "/", - }, - }, headerFooterDisplayItem, ]} partnersLogos={{ diff --git a/src/components/SurveyList/SurveyList.tsx b/src/components/SurveyList/SurveyList.tsx index 52dd657..10eab4b 100644 --- a/src/components/SurveyList/SurveyList.tsx +++ b/src/components/SurveyList/SurveyList.tsx @@ -7,9 +7,15 @@ import { Card } from "@codegouvfr/react-dsfr/Card"; export const SurveysList = () => { const { t } = useTranslation("SurveyHomepage"); - const surveys = content.specifique.map(survey => { - return { titleShort: survey.titleShort, id: survey.id }; - }); + const surveys = content.specifique + .map(survey => { + return { + titleShort: survey.titleShort, + id: survey.id, + disabledOnWelcomePage: survey.disabledOnWelcomePage, + }; + }) + .filter(survey => survey.disabledOnWelcomePage !== true); return (
diff --git a/src/components/forgotPassword/ForgotPasswordForm.tsx b/src/components/forgotPassword/ForgotPasswordForm.tsx index f92d674..6b51b6d 100644 --- a/src/components/forgotPassword/ForgotPasswordForm.tsx +++ b/src/components/forgotPassword/ForgotPasswordForm.tsx @@ -31,9 +31,7 @@ export const ForgotPasswordForm = ({ surveyId, onSubmit, register, errors }: Pro ...(errors.idec && { "aria-invalid": true, "aria-errormessage": "idec-desc-error" }), }} state={errors.idec ? "error" : "default"} - stateRelatedMessage={ - errors.idec?.message && supportFormTranslation(errors.idec?.message as keyof typeof t) - } + stateRelatedMessage={errors.idec?.message && t(errors.idec?.message as keyof typeof t)} /> {!errors.idec &&

}