ui
ui copied to clipboard
fix(components): Add "use client" directive to Toast
Resolves #2025
This adds the "use client" directive to the Toast component, since it makes use of client-only features like useState
. When absent, this causes errors in rendering as described in the issue.
@gramliu is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 3, 2024 11:27am |
@gramliu Can you run pnpm build:registry
please so that the registry is updated with your changes? Thank you.
@shadcn Updated the registry and ran the formatter