fix: update confetti effect

This commit is contained in:
RaktimaNXG
2024-09-19 19:04:59 +05:30
parent 1a1bc41283
commit ecb2818589
3 changed files with 14 additions and 2 deletions
@@ -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>
)}
+6 -1
View File
@@ -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">
@@ -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>}