Skip to content

Commit

Permalink
fix: clean up drawer-dialog example
Browse files Browse the repository at this point in the history
  • Loading branch information
sek-consulting committed Jan 29, 2024
1 parent e07d2ec commit c700f91
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions apps/docs/src/registry/example/drawer-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createSignal } from "solid-js"
import { isServer } from "solid-js/web"

import { As } from "@kobalte/core"
import { As as CorvuAs } from "corvu"

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

return (
<Drawer open={open()} onOpenChange={setOpen}>
<DrawerTrigger asChild>
<CorvuAs component={Button} variant="outline">
Edit Profile
</CorvuAs>
<DrawerTrigger as={Button} variant="outline">
Edit Profile
</DrawerTrigger>
<DrawerContent>
<DrawerHeader class="text-left">
Expand All @@ -73,10 +70,8 @@ export default function DrawerDialogDemo() {
</DrawerHeader>
<ProfileForm class="px-4" />
<DrawerFooter class="pt-2">
<DrawerClose asChild>
<CorvuAs component={Button} variant="outline">
Cancel
</CorvuAs>
<DrawerClose as={Button} variant="outline">
Cancel
</DrawerClose>
</DrawerFooter>
</DrawerContent>
Expand Down

1 comment on commit c700f91

@vercel
Copy link

@vercel vercel bot commented on c700f91 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.