Disable user FeedbackForm

pull/2869/head
Jérémy Rialland 2023-09-28 16:45:14 +02:00 committed by Johan Girod
parent f0b633a976
commit 0417e652d9
1 changed files with 17 additions and 1 deletions

View File

@ -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 (
<Grid item xs={12} md={8}>
<Message type="info">
<Trans i18nKey="feedback.disabled.body">
<Body>
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.
</Body>
</Trans>
</Message>
</Grid>
)
return (
<ScrollToElement onlyIfNotVisible>
{requestStatusCode === 200 ? (
@ -171,6 +186,7 @@ export default function FeedbackForm({
) : (
<>
{requestStatusCode !== null && (
// @ts-ignore Remove this comment when activate the feedback form
<FeedbackRequestErrorContent statusCode={requestStatusCode} />
)}
<StyledFeedback>