Skip to content

Commit

Permalink
Merge pull request #112 from Leo-Corporation/dependabot/npm_and_yarn/…
Browse files Browse the repository at this point in the history
…vNext/radix-ui/react-dialog-1.0.5

Bump @radix-ui/react-dialog from 1.0.4 to 1.0.5
  • Loading branch information
hmw-ian authored Oct 16, 2023
2 parents cd20ad2 + 1801b0b commit e2a1139
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 229 deletions.
3 changes: 1 addition & 2 deletions components/ui/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ const AlertDialog = AlertDialogPrimitive.Root;
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;

const AlertDialogPortal = ({
className,
...props
}: AlertDialogPrimitive.AlertDialogPortalProps) => (
<AlertDialogPrimitive.Portal className={cn(className)} {...props} />
<AlertDialogPrimitive.Portal {...props} />
);
AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName;

Expand Down
7 changes: 2 additions & 5 deletions components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ const Dialog = DialogPrimitive.Root;

const DialogTrigger = DialogPrimitive.Trigger;

const DialogPortal = ({
className,
...props
}: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal className={cn(className)} {...props} />
const DialogPortal = ({ ...props }: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal {...props} />
);
DialogPortal.displayName = DialogPrimitive.Portal.displayName;

Expand Down
7 changes: 2 additions & 5 deletions components/ui/sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ const SheetTrigger = SheetPrimitive.Trigger;

const SheetClose = SheetPrimitive.Close;

const SheetPortal = ({
className,
...props
}: SheetPrimitive.DialogPortalProps) => (
<SheetPrimitive.Portal className={cn(className)} {...props} />
const SheetPortal = ({ ...props }: SheetPrimitive.DialogPortalProps) => (
<SheetPrimitive.Portal {...props} />
);
SheetPortal.displayName = SheetPrimitive.Portal.displayName;

Expand Down
Loading

0 comments on commit e2a1139

Please sign in to comment.