Fix: Framer motion type error in sidebar

Fixes a type error related to `onAnimationStart` in `MobileSidebar` component.
This commit is contained in:
gpt-engineer-app[bot] 2025-06-23 00:51:29 +00:00
parent 771f0af1cb
commit 31cff64a24

View File

@ -85,6 +85,10 @@ export const DesktopSidebar = ({
...props
}: React.ComponentProps<"div">) => {
const { open, setOpen, animate } = useSidebar();
// Separate motion-specific props from HTML div props
const { onAnimationStart, onAnimationComplete, ...htmlProps } = props as any;
return (
<>
<motion.div
@ -97,7 +101,7 @@ export const DesktopSidebar = ({
}}
onMouseEnter={() => setOpen(true)}
onMouseLeave={() => setOpen(false)}
{...props}
{...htmlProps}
>
{children}
</motion.div>