Skip to content

Commit e9e06fc

Browse files
Merge pull request #1227 from OpenSignLabs/fix-Confetti
2 parents 1a1bc41 + ecb2818 commit e9e06fc

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

apps/OpenSign/src/pages/PdfRequestFiles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,6 +1658,8 @@ function PdfRequestFiles(props) {
16581658
<Confetti
16591659
width={window.innerWidth}
16601660
height={window.innerHeight}
1661+
recycle={false} // Prevents confetti from repeating
1662+
gravity={0.1} // Adjust the gravity to control the speed
16611663
/>
16621664
</div>
16631665
)}

apps/OpenSign/src/pages/SignyourselfPdf.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,12 @@ function SignYourSelf() {
11901190
)}
11911191
{isCelebration && (
11921192
<div className="relative z-[1000]">
1193-
<Confetti width={window.innerWidth} height={window.innerHeight} />
1193+
<Confetti
1194+
width={window.innerWidth}
1195+
height={window.innerHeight}
1196+
recycle={false} // Prevents confetti from repeating
1197+
gravity={0.1} // Adjust the gravity to control the speed
1198+
/>
11941199
</div>
11951200
)}
11961201
<div className="relative op-card overflow-hidden flex flex-col md:flex-row justify-between bg-base-300">

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,12 @@ const ReportTable = (props) => {
11291129
<div className="p-2 w-full overflow-auto bg-base-100 text-base-content op-card shadow-lg">
11301130
{isCelebration && (
11311131
<div className="relative z-[1000]">
1132-
<Confetti width={window.innerWidth} height={window.innerHeight} />
1132+
<Confetti
1133+
width={window.innerWidth}
1134+
height={window.innerHeight}
1135+
recycle={false} // Prevents confetti from repeating
1136+
gravity={0.1} // Adjust the gravity to control the speed
1137+
/>
11331138
</div>
11341139
)}
11351140
{isAlert && <Alert type={alertMsg.type}>{alertMsg.message}</Alert>}

0 commit comments

Comments
 (0)