Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

temporarily remove animations to fix perf issue

Steven Teyd142f2500bdd
diff --git a/components/home/globe.tsx b/components/home/globe.tsx
index 5b5461f04f..e8be0e4f25 100644
--- a/components/home/globe.tsx
+++ b/components/home/globe.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useEffect, useRef, useState } from "react";
+import { useEffect, useRef, useState } from "react";
import Link from "next/link";
import createGlobe from "cobe";
import { useSpring } from "react-spring";
@@ -86,7 +86,7 @@ export default function Globe({ hostname }: { hostname?: string }) {
>
<X className="w-4 h-4" />
</button>
- <Drag className="h-12 w-12 mx-auto mb-2 sm:mb-4 text-gray-700 animate-wiggle" />
+ <Drag className="h-12 w-12 mx-auto mb-2 sm:mb-4 text-gray-700" />
<p className="text-center text-gray-700 text-sm sm:text-base">
This map shows the locations of the last 30 clicks on{" "}
<a
diff --git a/components/home/placeholder-card.tsx b/components/home/placeholder-card.tsx
index 8c0c0192af..a4573003cb 100644
--- a/components/home/placeholder-card.tsx
+++ b/components/home/placeholder-card.tsx
@@ -7,14 +7,14 @@ export default function PlaceholderCard() {
variants={FRAMER_MOTION_LIST_ITEM_VARIANTS}
className="flex items-center border border-gray-200 hover:border-black bg-white p-3 max-w-md rounded-md transition-all"
>
- <div className="w-10 h-10 rounded-full mr-2 bg-gray-200 animate-pulse" />
+ <div className="w-10 h-10 rounded-full mr-2 bg-gray-200" />
<div>
<div className="flex items-center space-x-2 mb-2.5">
- <div className="w-28 h-6 rounded-md bg-gray-200 animate-pulse" />
- <div className="w-6 h-6 rounded-full bg-gray-200 animate-pulse" />
- <div className="w-20 h-6 rounded-md bg-gray-200 animate-pulse" />
+ <div className="w-28 h-6 rounded-md bg-gray-200" />
+ <div className="w-6 h-6 rounded-full bg-gray-200" />
+ <div className="w-20 h-6 rounded-md bg-gray-200" />
</div>
- <div className="w-72 h-4 rounded-md bg-gray-200 animate-pulse" />
+ <div className="w-72 h-4 rounded-md bg-gray-200" />
</div>
</motion.li>
);