Skip to content

Commit

Permalink
remove lottie (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
freds-dev authored Oct 12, 2023
1 parent 530fd86 commit b06dcac
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 51 deletions.
14 changes: 1 addition & 13 deletions app/components/error-message.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { X } from "lucide-react";
import { Alert, AlertDescription } from "./ui/alert";
import Lottie from "react-lottie";
import * as animationData from "../../public/animations/error_animation.json";
import { useNavigate } from "@remix-run/react";

export default function ErrorMessage() {
Expand All @@ -22,18 +20,8 @@ export default function ErrorMessage() {
Oh no, this shouldn't happen, but don't worry, our team is on the case!
</p>
<AlertDescription>
<Lottie
options={{
animationData: animationData,
autoplay: true,
loop: true,
}}
height={200}
width={200}
/>
<p className="p-2 text-md text-center">
And just to lighten the mood, here's an animation of a dog with a
lifebuoy to keep you company
Add some info here.
</p>
</AlertDescription>
</Alert>
Expand Down
36 changes: 0 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"react-draggable": "^4.4.5",
"react-hook-form": "^7.45.0",
"react-i18next": "^12.2.2",
"react-lottie": "^1.2.3",
"react-map-gl": "^7.0.21",
"react-map-gl-geocoder": "^2.2.0",
"react-spring": "^9.7.1",
Expand Down
1 change: 0 additions & 1 deletion public/animations/error_animation.json

This file was deleted.

0 comments on commit b06dcac

Please sign in to comment.