Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: remove classname on DialogPortal

Marc Seitzf123bd0c63df
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 853bc2f2..879dbf44 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -11,11 +11,10 @@ const Dialog = DialogPrimitive.Root
const DialogTrigger = DialogPrimitive.Trigger
const DialogPortal = ({
- className,
children,
...props
}: DialogPrimitive.DialogPortalProps) => (
- <DialogPrimitive.Portal className={cn(className)} {...props}>
+ <DialogPrimitive.Portal {...props}>
<div className="fixed inset-0 z-50 flex items-end justify-center sm:items-center">
{children}
</div>
diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx
index b9d6ffbd..902d507f 100644
--- a/components/ui/sheet.tsx
+++ b/components/ui/sheet.tsx
@@ -14,10 +14,9 @@ const SheetTrigger = SheetPrimitive.Trigger;
const SheetClose = SheetPrimitive.Close;
const SheetPortal = ({
- className,
...props
}: SheetPrimitive.DialogPortalProps) => (
- <SheetPrimitive.Portal className={cn(className)} {...props} />
+ <SheetPrimitive.Portal {...props} />
);
SheetPortal.displayName = SheetPrimitive.Portal.displayName;