Skip to content

Conversation

mdqst
Copy link

@mdqst mdqst commented Sep 25, 2025

I've gone through a few key components and made adjustments to improve type safety and proper prop forwarding:

  • TopNavContext: Added TopNavContextType interface and explicitly typed createContext<TopNavContextType>() to catch type errors when using setShow.
  • Dialog.Close (asChild): Removed className from the component and moved it to <a> to ensure props are correctly passed to the child.
  • Dialog.Trigger: Added asChild and wrapped <svg> with <button> to match Radix's recommended Trigger structure.
  • Image: Added {width} and {height} as expressions for correct Next.js Image typing.

changes fix type issues and ensure components behave correctly when using asChild and TypeScript.

Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
frontiers Ready Ready Preview Comment Sep 25, 2025 10:22am

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