From 0417e652d9376ebf7aea4c079d13c26b494fbece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 28 Sep 2023 16:45:14 +0200 Subject: [PATCH] Disable user FeedbackForm --- .../components/Feedback/FeedbackForm.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/site/source/components/Feedback/FeedbackForm.tsx b/site/source/components/Feedback/FeedbackForm.tsx index 34cdba544..aa47ba41a 100644 --- a/site/source/components/Feedback/FeedbackForm.tsx +++ b/site/source/components/Feedback/FeedbackForm.tsx @@ -7,7 +7,7 @@ import { ScrollToElement } from '@/components/utils/Scroll' import { Checkbox, Message, TextAreaField, TextField } from '@/design-system' import { Button } from '@/design-system/buttons' import { Emoji } from '@/design-system/emoji' -import { Spacing } from '@/design-system/layout' +import { Grid, Spacing } from '@/design-system/layout' import { Strong } from '@/design-system/typography' import { H1, H4 } from '@/design-system/typography/heading' import { Link } from '@/design-system/typography/link' @@ -164,6 +164,21 @@ export default function FeedbackForm({ setSubmitError((previousValue) => ({ ...previousValue, [field]: '' })) : undefined + // Remove this to activate the feedback form + return ( + + + + + Suite à l'arrêt de l'équipe Mon-Entreprise, nous ne sommes plus en + mesure de traiter vos retours, le formulaire est donc désactivé pour + le moment. + + + + + ) + return ( {requestStatusCode === 200 ? ( @@ -171,6 +186,7 @@ export default function FeedbackForm({ ) : ( <> {requestStatusCode !== null && ( + // @ts-ignore Remove this comment when activate the feedback form )}