use Icon component

This commit is contained in:
Oliver Bryan
2026-01-17 22:12:29 +00:00
parent 20f755ef71
commit e2560b089b
21 changed files with 97 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { XIcon } from "lucide-react";
import type * as React from "react";
import Icon from "@/components/ui/icon";
import { cn } from "@/lib/utils";
@@ -71,7 +71,7 @@ function DialogContent({
"[&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
)}
>
<XIcon />
<Icon icon="x" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
)}