Skip to content

Commit 50b9717

Browse files
fix: stop loop of mail sent animation
1 parent 6eeaea1 commit 50b9717

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

apps/OpenSign/package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/OpenSign/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@formkit/auto-animate": "^0.8.2",
7+
"@lottiefiles/dotlottie-react": "^0.6.4",
78
"@radix-ui/themes": "^3.0.5",
89
"@react-pdf/renderer": "^3.4.4",
910
"@reduxjs/toolkit": "^2.2.5",
-316 KB
Binary file not shown.

apps/OpenSign/src/pages/PlaceHolderSign.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { EmailBody } from "../components/pdf/EmailBody";
4949
import Upgrade from "../primitives/Upgrade";
5050
import Alert from "../primitives/Alert";
5151
import Loader from "../primitives/Loader";
52-
import mail_sent_gif from "../assets/gif/mail_sent.gif";
52+
import { DotLottieReact } from "@lottiefiles/dotlottie-react";
5353
function PlaceHolderSign() {
5454
const editorRef = useRef();
5555
const navigate = useNavigate();
@@ -1790,8 +1790,11 @@ function PlaceHolderSign() {
17901790
<div className="h-[100%] p-[20px]">
17911791
{mailStatus === "success" ? (
17921792
<div className="text-center mb-[10px]">
1793-
<img
1794-
src={mail_sent_gif}
1793+
<DotLottieReact
1794+
dotLottieRefCallback={null}
1795+
src="https://lottie.host/00a72a09-f2d4-493a-9b2d-2843bf067638/Ic7jJ44wLJ.json"
1796+
autoplay
1797+
loop={false}
17951798
className="w-[120px] h-[120px] mx-auto"
17961799
/>
17971800
<p>You have successfully sent mails to all recipients!</p>

0 commit comments

Comments
 (0)