ui icon indicating copy to clipboard operation
ui copied to clipboard

fix(components): Add "use client" directive to Toast

Open gramliu opened this issue 1 year ago • 4 comments

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 avatar Dec 05 '23 04:12 gramliu

@gramliu is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Dec 05 '23 04:12 vercel[bot]

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

vercel[bot] avatar Jan 28 '24 09:01 vercel[bot]

@gramliu Can you run pnpm build:registry please so that the registry is updated with your changes? Thank you.

shadcn avatar Jan 28 '24 09:01 shadcn

@shadcn Updated the registry and ran the formatter

gramliu avatar Jan 28 '24 21:01 gramliu