mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-23 12:45:47 +00:00
fix(example): Prevent hydration error in music example (#1569)
<DisalogTrigger> should have asChild when a button used.
This commit is contained in:
@@ -35,7 +35,7 @@ export function PodcastEmptyPlaceholder() {
|
||||
You have not added any podcasts. Add one below.
|
||||
</p>
|
||||
<Dialog>
|
||||
<DialogTrigger>
|
||||
<DialogTrigger asChild>
|
||||
<Button size="sm" className="relative">
|
||||
Add Podcast
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user