Skip to content

Commit 7b205e4

Browse files
committed
fix: motion.div build error fixed
1 parent 11d61a7 commit 7b205e4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/components/ui/floating-dock.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,12 @@ const FloatingDockDesktop = ({
102102
let mouseX = useMotionValue(Infinity);
103103
return (
104104
<motion.div
105-
// onMouseMove={(e) => mouseX.set(e.pageX)}
106-
// onMouseLeave={() => mouseX.set(Infinity)}
107-
{...{
108-
onMouseMove: (e: MouseEvent) => mouseX.set(e.pageX),
109-
onMouseLeave: (e: MouseEvent) => mouseX.set(Infinity),
110-
className: cn(
111-
"mx-auto hidden md:flex h-16 gap-4 items-end rounded-2xl bg-gray-50 dark:bg-neutral-900 px-4 pb-3",
112-
className
113-
)
114-
}}
105+
onMouseMove={(e) => mouseX.set(e.pageX)}
106+
onMouseLeave={() => mouseX.set(Infinity)}
107+
className={cn(
108+
"mx-auto hidden md:flex h-16 gap-4 items-end rounded-2xl bg-gray-50 dark:bg-neutral-900 px-4 pb-3",
109+
className
110+
)}
115111
>
116112
{items.map((item) => (
117113
<IconContainer mouseX={mouseX} key={item.title} {...item} />

0 commit comments

Comments
 (0)