From 2771de88f40a5f4ed7480bd8614532dda72deeda Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 4 Nov 2023 19:26:16 +0100 Subject: refactor(components): rewrite CommentForm component * remove `Notice` prop to handle it directly in the form * replace `saveComment` prop with `onSubmit` * use `useForm` hook to handle the form --- src/i18n/en.json | 8 ++++---- src/i18n/fr.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/i18n') diff --git a/src/i18n/en.json b/src/i18n/en.json index f5e9024..ebeed8b 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -507,10 +507,6 @@ "defaultMessage": "Main navigation", "description": "Layout: main nav accessible name" }, - "dz2kDV": { - "defaultMessage": "Comment form", - "description": "CommentForm: aria label" - }, "f0Z/Po": { "defaultMessage": "Updated on:", "description": "Summary: update date label" @@ -583,6 +579,10 @@ "defaultMessage": "Leave a comment", "description": "PageLayout: comment form title" }, + "l+Jcf6": { + "defaultMessage": "Comment form", + "description": "PageLayout: comment form accessible name" + }, "lHkta9": { "defaultMessage": "Total:", "description": "ThematicPage: total label" diff --git a/src/i18n/fr.json b/src/i18n/fr.json index 9474129..fa2a65f 100644 --- a/src/i18n/fr.json +++ b/src/i18n/fr.json @@ -507,10 +507,6 @@ "defaultMessage": "Navigation principale", "description": "Layout: main nav accessible name" }, - "dz2kDV": { - "defaultMessage": "Formulaire des commentaires", - "description": "CommentForm: aria label" - }, "f0Z/Po": { "defaultMessage": "Mis à jour le :", "description": "Summary: update date label" @@ -583,6 +579,10 @@ "defaultMessage": "Laisser un commentaire", "description": "PageLayout: comment form title" }, + "l+Jcf6": { + "defaultMessage": "Formulaire des commentaires", + "description": "PageLayout: comment form accessible name" + }, "lHkta9": { "defaultMessage": "Total :", "description": "ThematicPage: total label" -- cgit v1.2.3