From 0787ed74a09bfdf2006425a627fddf2ed84d49d9 Mon Sep 17 00:00:00 2001
From: Kshitij Verma <101321276+kshitijv256@users.noreply.github.com>
Date: Wed, 22 Nov 2023 09:05:02 +0530
Subject: [PATCH] fixed image upload modal (#6666)
---
.../Facility/CoverImageEditModal.tsx | 20 ++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/Components/Facility/CoverImageEditModal.tsx b/src/Components/Facility/CoverImageEditModal.tsx
index 988bc288f58..a1394c6441f 100644
--- a/src/Components/Facility/CoverImageEditModal.tsx
+++ b/src/Components/Facility/CoverImageEditModal.tsx
@@ -301,11 +301,10 @@ const CoverImageEditModal = ({
) : (
-
+
{t("capture_cover_photo")}
- {facility.name}
{!previewImage ? (
@@ -326,10 +325,13 @@ const CoverImageEditModal = ({
)}
{/* buttons for mobile screens */}
-
+
{!previewImage ? (
-
+
{t("switch")}
) : (
@@ -344,7 +346,7 @@ const CoverImageEditModal = ({
onClick={() => {
captureImage();
}}
- className="m-2"
+ className="my-2 w-full"
>
{t("capture")}
@@ -352,17 +354,17 @@ const CoverImageEditModal = ({
>
) : (
<>
-
+
{
setPreviewImage(null);
}}
- className="m-2"
+ className="my-2 w-full"
disabled={isUploading}
>
{t("retake")}
-
+
{isCaptureImgBeingUploaded && (
)}
@@ -380,7 +382,7 @@ const CoverImageEditModal = ({
setIsCameraOpen(false);
webRef.current.stopCamera();
}}
- className="m-2"
+ className="border-grey-200 my-2 w-full border-2"
>
{t("close")}