Skip to content

Commit 7b4e318

Browse files
committed
fix button inside button (template: vite)
1 parent 6672809 commit 7b4e318

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

templates/vite/src/components/about-dialog.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from "lucide-react"
1313

1414
import { Icons } from "./icons"
15-
import { Button } from "./ui/button"
15+
import { Button, buttonVariants } from "./ui/button"
1616
import {
1717
DialogContent,
1818
DialogDescription,
@@ -89,10 +89,11 @@ export function AboutDialog() {
8989
>
9090
<UpdateIcon /> Check for Updates
9191
</Button>
92-
<DialogPrimitive.Close>
93-
<Button type="submit" variant="ghost" className="h-7">
94-
Close
95-
</Button>
92+
<DialogPrimitive.Close
93+
type="submit"
94+
className={buttonVariants({ variant: "ghost", className: "h-7" })}
95+
>
96+
Close
9697
</DialogPrimitive.Close>
9798
</DialogFooter>
9899
</DialogContent>

0 commit comments

Comments
 (0)