From 3d301653fbcee32c34c6071936d7054e3acd8ed8 Mon Sep 17 00:00:00 2001 From: Wissam Moussa Date: Tue, 2 Jan 2024 19:17:04 -0500 Subject: [PATCH 1/4] disable submit button if error detected --- .../app/responses/Dialogs/ConfirmDialog.tsx | 16 +++++++++++----- .../locales/en/form-builder-responses.json | 2 +- .../locales/fr/form-builder-responses.json | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/components/form-builder/app/responses/Dialogs/ConfirmDialog.tsx b/components/form-builder/app/responses/Dialogs/ConfirmDialog.tsx index 4003c1972c..bfa99811c6 100644 --- a/components/form-builder/app/responses/Dialogs/ConfirmDialog.tsx +++ b/components/form-builder/app/responses/Dialogs/ConfirmDialog.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { useTranslation } from "next-i18next"; +import { useTranslation, Trans } from "next-i18next"; import { useDialogRef, Dialog } from "@components/form-builder/app/shared"; import { LineItemEntries } from "./line-item-entries"; import { Button, Alert } from "@components/globals"; @@ -149,9 +149,12 @@ export const ConfirmDialog = ({ {t("downloadResponsesModals.confirmReceiptDialog.errors.invalidEntry.title")}

- {t( - "downloadResponsesModals.confirmReceiptDialog.errors.invalidEntry.description" - )} + + +

)} @@ -210,7 +213,10 @@ export const ConfirmDialog = ({ -