@@ -48,7 +48,10 @@ const FloatingDockMobile = ({
4848 { open && (
4949 < motion . div
5050 layoutId = "nav"
51- className = "absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2"
51+ { ...{
52+ className :
53+ "absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2"
54+ } }
5255 >
5356 { items . map ( ( item , idx ) => (
5457 < motion . div
@@ -99,12 +102,16 @@ const FloatingDockDesktop = ({
99102 let mouseX = useMotionValue ( Infinity ) ;
100103 return (
101104 < motion . div
102- onMouseMove = { ( e ) => mouseX . set ( e . pageX ) }
103- onMouseLeave = { ( ) => mouseX . set ( Infinity ) }
104- className = { cn (
105- "mx-auto hidden md:flex h-16 gap-4 items-end rounded-2xl bg-gray-50 dark:bg-neutral-900 px-4 pb-3" ,
106- className
107- ) }
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+ } }
108115 >
109116 { items . map ( ( item ) => (
110117 < IconContainer mouseX = { mouseX } key = { item . title } { ...item } />
@@ -170,10 +177,13 @@ function IconContainer({
170177 < Link href = { href } >
171178 < motion . div
172179 ref = { ref }
173- style = { { width, height } }
174- onMouseEnter = { ( ) => setHovered ( true ) }
175- onMouseLeave = { ( ) => setHovered ( false ) }
176- className = "aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative"
180+ { ...{
181+ style : { width, height } ,
182+ onMouseEnter : ( ) => setHovered ( true ) ,
183+ onMouseLeave : ( ) => setHovered ( false ) ,
184+ className :
185+ "aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative"
186+ } }
177187 >
178188 < AnimatePresence >
179189 { /* {hovered && (
@@ -189,7 +199,7 @@ function IconContainer({
189199 </ AnimatePresence >
190200 < motion . div
191201 style = { { width : widthIcon , height : heightIcon } }
192- className = "flex items-center justify-center"
202+ { ... { className : "flex items-center justify-center" } }
193203 >
194204 { icon }
195205 </ motion . div >
0 commit comments