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.

Set initial d on SortOrder paths

Rafi2550ae210ace
diff --git a/packages/ui/src/icons/sort-order.tsx b/packages/ui/src/icons/sort-order.tsx
index 1735cfd470..1d0a1a002a 100644
--- a/packages/ui/src/icons/sort-order.tsx
+++ b/packages/ui/src/icons/sort-order.tsx
@@ -19,6 +19,7 @@ export function SortOrder({
xmlns="http://www.w3.org/2000/svg"
>
<motion.path
+ initial={false}
animate={{ d: order === "asc" ? downPath : upPath }}
stroke="currentColor"
strokeWidth="1.5"
@@ -27,6 +28,7 @@ export function SortOrder({
/>
<motion.path
className={cn(order && "opacity-40")}
+ initial={false}
animate={{ d: order === "asc" ? upPath : downPath }}
stroke="currentColor"
strokeWidth="1.5"