Skip to content

fix: type error for inViewMargin#16

Open
michaelgold wants to merge 1 commit intomagicuidesign:mainfrom
michaelgold:main
Open

fix: type error for inViewMargin#16
michaelgold wants to merge 1 commit intomagicuidesign:mainfrom
michaelgold:main

Conversation

@michaelgold
Copy link

This fixes a linting error building the site as static site:

Linting and checking validity of types ...Failed to compile.

./src/components/magicui/blur-fade.tsx:32:53
Type error: Type 'string' is not assignable to type 'MarginType | undefined'.

30 | }: BlurFadeProps) => {
31 | const ref = useRef(null);

32 | const inViewResult = useInView(ref, { once: true, margin: inViewMargin });
| ^
33 | const isInView = !inView || inViewResult;
34 | const defaultVariants: Variants = {
35 | hidden: { y: yOffset, opacity: 0, filter: blur(${blur}) },
 ELIFECYCLE  Command failed with exit code 1.

@vercel
Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
portfolio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 5:56pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments