diff --git a/apps/OpenSign/src/assets/images/newCeleb.gif b/apps/OpenSign/src/assets/images/newCeleb.gif deleted file mode 100644 index c0b0d9555..000000000 Binary files a/apps/OpenSign/src/assets/images/newCeleb.gif and /dev/null differ diff --git a/apps/OpenSign/src/components/dashboard/DashboardCard.js b/apps/OpenSign/src/components/dashboard/DashboardCard.js index 48a9f3bda..f8017ac91 100644 --- a/apps/OpenSign/src/components/dashboard/DashboardCard.js +++ b/apps/OpenSign/src/components/dashboard/DashboardCard.js @@ -261,21 +261,14 @@ const DashboardCard = (props) => { } } body = str; - await axios - .post(url, body, { headers: headers }) - .then((response) => { - try { - if (response.data.result.length > 0) { - setresponse(response.data.result[0][props.FilterData.key]); - setLoading(false); - } else { - setresponse("0"); - setLoading(false); - } - } catch (error) { - setLoading(false); - } - }); + const response = await axios.post(url, body, { headers: headers }); + if (response.data.result.length > 0) { + setresponse(response.data.result[0][props.FilterData.key]); + setLoading(false); + } else { + setresponse("0"); + setLoading(false); + } } catch (error) { setLoading(false); } @@ -338,7 +331,7 @@ const DashboardCard = (props) => { }`} >
- + handleOnclikFolder(data)}> - + ) : (
checkPdfStatus(data)}> - +
); } diff --git a/apps/OpenSign/src/components/pdf/EmailComponent.js b/apps/OpenSign/src/components/pdf/EmailComponent.js index 3cb72fc49..61e95b67d 100644 --- a/apps/OpenSign/src/components/pdf/EmailComponent.js +++ b/apps/OpenSign/src/components/pdf/EmailComponent.js @@ -1,6 +1,5 @@ import React, { useState } from "react"; import { saveAs } from "file-saver"; -import celebration from "../../assets/images/newCeleb.gif"; import axios from "axios"; import { getBase64FromUrl } from "../../constant/Utils"; import { themeColor } from "../../constant/const"; @@ -22,7 +21,6 @@ function EmailComponent({ const [emailList, setEmailList] = useState([]); const [emailValue, setEmailValue] = useState(); const [isLoading, setIsLoading] = useState(false); - const [isEmailCelebration, setIsEmailCelebration] = useState(false); //function for send email const sendEmail = async () => { setIsLoading(true); @@ -63,10 +61,6 @@ function EmailComponent({ " target=_blank>here

" }; sendMail = await axios.post(url, params, { headers: headers }); - setIsEmailCelebration(true); - setTimeout(() => { - setIsEmailCelebration(false); - }, 3000); } catch (error) { console.log("error", error); setIsLoading(false); @@ -205,11 +199,6 @@ function EmailComponent({
- {isEmailCelebration && ( -
- celeb -
- )}

Recipients added here will get a copy of the signed document.

@@ -293,7 +282,7 @@ function EmailComponent({