Skip to content

Commit c700f91

Browse files
committed
fix: clean up drawer-dialog example
1 parent e07d2ec commit c700f91

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

apps/docs/src/registry/example/drawer-dialog.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { createSignal } from "solid-js"
33
import { isServer } from "solid-js/web"
44

55
import { As } from "@kobalte/core"
6-
import { As as CorvuAs } from "corvu"
76

87
import { cn } from "~/lib/utils"
98
import { Button } from "~/registry/ui/button"
@@ -59,10 +58,8 @@ export default function DrawerDialogDemo() {
5958

6059
return (
6160
<Drawer open={open()} onOpenChange={setOpen}>
62-
<DrawerTrigger asChild>
63-
<CorvuAs component={Button} variant="outline">
64-
Edit Profile
65-
</CorvuAs>
61+
<DrawerTrigger as={Button} variant="outline">
62+
Edit Profile
6663
</DrawerTrigger>
6764
<DrawerContent>
6865
<DrawerHeader class="text-left">
@@ -73,10 +70,8 @@ export default function DrawerDialogDemo() {
7370
</DrawerHeader>
7471
<ProfileForm class="px-4" />
7572
<DrawerFooter class="pt-2">
76-
<DrawerClose asChild>
77-
<CorvuAs component={Button} variant="outline">
78-
Cancel
79-
</CorvuAs>
73+
<DrawerClose as={Button} variant="outline">
74+
Cancel
8075
</DrawerClose>
8176
</DrawerFooter>
8277
</DrawerContent>

0 commit comments

Comments
 (0)