From 1df5071ef9768918c55cc17539da995bdd50d585 Mon Sep 17 00:00:00 2001 From: jyassien Date: Fri, 22 Nov 2024 22:47:40 -0700 Subject: [PATCH] Gives error when the model determines if the submitted image is invalid. --- src/common/ActionErrorPopup.jsx | 8 +++++--- src/common/UserErrorPopup.jsx | 8 -------- src/homePage/uploadImage/UploadImage.jsx | 21 ++++++++++++++------- 3 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 src/common/UserErrorPopup.jsx diff --git a/src/common/ActionErrorPopup.jsx b/src/common/ActionErrorPopup.jsx index 2af2df7..e465449 100644 --- a/src/common/ActionErrorPopup.jsx +++ b/src/common/ActionErrorPopup.jsx @@ -20,9 +20,11 @@ const ActionErrorPopup = ({ errorTitle, errorMessage }) => { {modalErrorMessage.errorTitle || "Error"} - - - {modalErrorMessage.errorMessage || "Something wrong happened."} + + +
+ {modalErrorMessage.errorMessage || "Something wrong happened."} +