Skip to content

fix: resolve type error in BlurFade component for inView margin prop#17

Open
RizwiS wants to merge 1 commit intomagicuidesign:mainfrom
RizwiS:fix/blur-fade-type-error
Open

fix: resolve type error in BlurFade component for inView margin prop#17
RizwiS wants to merge 1 commit intomagicuidesign:mainfrom
RizwiS:fix/blur-fade-type-error

Conversation

@RizwiS
Copy link

@RizwiS RizwiS commented Oct 31, 2024

  • Updated BlurFade component by casting inViewMargin to any when passed to useInView, bypassing strict typing issues with framer-motion.
  • This change ensures compatibility with custom string values for the margin parameter, preventing TypeScript errors while maintaining the intended blur and fade effects.

- Updated `BlurFade` component by casting `inViewMargin` to `any` when passed to `useInView`, bypassing strict typing issues with `framer-motion`.
- This change ensures compatibility with custom string values for the margin parameter, preventing TypeScript errors while maintaining the intended blur and fade effects.
@vercel
Copy link

vercel bot commented Oct 31, 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 Oct 31, 2024 11:15pm

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