Skip to content

Commit

Permalink
Merge pull request #46 from Varsani2520/remove-close-icon
Browse files Browse the repository at this point in the history
remove close icon
  • Loading branch information
Yeasir0032 authored May 14, 2024
2 parents 2f2cfdd + 5a569d2 commit aa7ff4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const DialogTrigger = DialogPrimitive.Trigger

const DialogPortal = DialogPrimitive.Portal

const DialogClose = DialogPrimitive.Close
// const DialogClose = DialogPrimitive.Close

const DialogOverlay = React.forwardRef<
React.ElementRef<typeof DialogPrimitive.Overlay>,
Expand Down Expand Up @@ -44,10 +44,10 @@ const DialogContent = React.forwardRef<
{...props}
>
{children}
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
{/* <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
</DialogPrimitive.Close> */}
</DialogPrimitive.Content>
</DialogPortal>
))
Expand Down Expand Up @@ -112,7 +112,7 @@ export {
Dialog,
DialogPortal,
DialogOverlay,
DialogClose,
// DialogClose,
DialogTrigger,
DialogContent,
DialogHeader,
Expand Down

0 comments on commit aa7ff4f

Please sign in to comment.