Skip to content

Commit 5bff2d0

Browse files
committed
fix: motion.div error fixed
1 parent 7b205e4 commit 5bff2d0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/components/ui/floating-dock.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import {
1212
motion,
1313
useMotionValue,
1414
useSpring,
15-
useTransform
15+
useTransform,
1616
} from "framer-motion";
1717
import Link from "next/link";
1818
import { useRef, useState } from "react";
1919

2020
export const FloatingDock = ({
2121
items,
2222
desktopClassName,
23-
mobileClassName
23+
mobileClassName,
2424
}: {
2525
items: { title: string; icon: React.ReactNode; href: string }[];
2626
desktopClassName?: string;
@@ -36,7 +36,7 @@ export const FloatingDock = ({
3636

3737
const FloatingDockMobile = ({
3838
items,
39-
className
39+
className,
4040
}: {
4141
items: { title: string; icon: React.ReactNode; href: string }[];
4242
className?: string;
@@ -50,7 +50,7 @@ const FloatingDockMobile = ({
5050
layoutId="nav"
5151
{...{
5252
className:
53-
"absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2"
53+
"absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2",
5454
}}
5555
>
5656
{items.map((item, idx) => (
@@ -59,14 +59,14 @@ const FloatingDockMobile = ({
5959
initial={{ opacity: 0, y: 10 }}
6060
animate={{
6161
opacity: 1,
62-
y: 0
62+
y: 0,
6363
}}
6464
exit={{
6565
opacity: 0,
6666
y: 10,
6767
transition: {
68-
delay: idx * 0.05
69-
}
68+
delay: idx * 0.05,
69+
},
7070
}}
7171
transition={{ delay: (items.length - 1 - idx) * 0.05 }}
7272
>
@@ -94,7 +94,7 @@ const FloatingDockMobile = ({
9494

9595
const FloatingDockDesktop = ({
9696
items,
97-
className
97+
className,
9898
}: {
9999
items: { title: string; icon: React.ReactNode; href: string }[];
100100
className?: string;
@@ -120,7 +120,7 @@ function IconContainer({
120120
mouseX,
121121
title,
122122
icon,
123-
href
123+
href,
124124
}: {
125125
mouseX: MotionValue;
126126
title: string;
@@ -148,23 +148,23 @@ function IconContainer({
148148
let width = useSpring(widthTransform, {
149149
mass: 0.1,
150150
stiffness: 150,
151-
damping: 12
151+
damping: 12,
152152
});
153153
let height = useSpring(heightTransform, {
154154
mass: 0.1,
155155
stiffness: 150,
156-
damping: 12
156+
damping: 12,
157157
});
158158

159159
let widthIcon = useSpring(widthTransformIcon, {
160160
mass: 0.1,
161161
stiffness: 150,
162-
damping: 12
162+
damping: 12,
163163
});
164164
let heightIcon = useSpring(heightTransformIcon, {
165165
mass: 0.1,
166166
stiffness: 150,
167-
damping: 12
167+
damping: 12,
168168
});
169169

170170
const [hovered, setHovered] = useState(false);
@@ -178,7 +178,7 @@ function IconContainer({
178178
onMouseEnter: () => setHovered(true),
179179
onMouseLeave: () => setHovered(false),
180180
className:
181-
"aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative"
181+
"aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative",
182182
}}
183183
>
184184
<AnimatePresence>

0 commit comments

Comments
 (0)