Skip to content

🔥 The free & Open Source DocuSign alternative

fix: update confetti effect

RaktimaNXGecb2818589bb
diff --git a/apps/OpenSign/src/pages/PdfRequestFiles.js b/apps/OpenSign/src/pages/PdfRequestFiles.js
index 59da17d81..04d432513 100644
--- a/apps/OpenSign/src/pages/PdfRequestFiles.js
+++ b/apps/OpenSign/src/pages/PdfRequestFiles.js
@@ -1658,6 +1658,8 @@ function PdfRequestFiles(props) {
<Confetti
width={window.innerWidth}
height={window.innerHeight}
+ recycle={false} // Prevents confetti from repeating
+ gravity={0.1} // Adjust the gravity to control the speed
/>
</div>
)}
diff --git a/apps/OpenSign/src/pages/SignyourselfPdf.js b/apps/OpenSign/src/pages/SignyourselfPdf.js
index 8a64861be..65c1c0a12 100644
--- a/apps/OpenSign/src/pages/SignyourselfPdf.js
+++ b/apps/OpenSign/src/pages/SignyourselfPdf.js
@@ -1190,7 +1190,12 @@ function SignYourSelf() {
)}
{isCelebration && (
<div className="relative z-[1000]">
- <Confetti width={window.innerWidth} height={window.innerHeight} />
+ <Confetti
+ width={window.innerWidth}
+ height={window.innerHeight}
+ recycle={false} // Prevents confetti from repeating
+ gravity={0.1} // Adjust the gravity to control the speed
+ />
</div>
)}
<div className="relative op-card overflow-hidden flex flex-col md:flex-row justify-between bg-base-300">
diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js
index 1da433681..15ebfcde1 100644
--- a/apps/OpenSign/src/primitives/GetReportDisplay.js
+++ b/apps/OpenSign/src/primitives/GetReportDisplay.js
@@ -1129,7 +1129,12 @@ const ReportTable = (props) => {
<div className="p-2 w-full overflow-auto bg-base-100 text-base-content op-card shadow-lg">
{isCelebration && (
<div className="relative z-[1000]">
- <Confetti width={window.innerWidth} height={window.innerHeight} />
+ <Confetti
+ width={window.innerWidth}
+ height={window.innerHeight}
+ recycle={false} // Prevents confetti from repeating
+ gravity={0.1} // Adjust the gravity to control the speed
+ />
</div>
)}
{isAlert && <Alert type={alertMsg.type}>{alertMsg.message}</Alert>}