Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

Fixing linter issue: dock.tsx (#403)

Aryan Chaurasiad4ae7c9f90fa
diff --git a/registry/default/magicui/dock.tsx b/registry/default/magicui/dock.tsx
index 2655d997..1d9beb3a 100644
--- a/registry/default/magicui/dock.tsx
+++ b/registry/default/magicui/dock.tsx
@@ -96,13 +96,13 @@ const DockIcon = ({
return val - bounds.x - bounds.width / 2;
});
- let widthSync = useTransform(
+ const widthSync = useTransform(
distanceCalc,
[-distance, 0, distance],
[40, magnification, 40],
);
- let width = useSpring(widthSync, {
+ const width = useSpring(widthSync, {
mass: 0.1,
stiffness: 150,
damping: 12,