Skip to content

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

fix: fix button in button error

Marc Seitzf6a8891210d5
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsx
index 11a82fef..7a2f2423 100644
--- a/components/billing/upgrade-plan-modal.tsx
+++ b/components/billing/upgrade-plan-modal.tsx
@@ -40,7 +40,7 @@ export function UpgradePlanModal({ children }: { children: React.ReactNode }) {
return (
<Dialog>
- <DialogTrigger>{children}</DialogTrigger>
+ <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="text-foreground bg-background">
<motion.div
variants={{
diff --git a/components/documents/add-document-modal.tsx b/components/documents/add-document-modal.tsx
index 8f3333a2..6912b25f 100644
--- a/components/documents/add-document-modal.tsx
+++ b/components/documents/add-document-modal.tsx
@@ -98,7 +98,7 @@ export function AddDocumentModal({children}: {children: React.ReactNode}) {
return (
<Dialog>
- <DialogTrigger>{children}</DialogTrigger>
+ <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="text-foreground bg-background">
<DialogHeader>
<DialogTitle>Share a document</DialogTitle>
diff --git a/components/domains/add-domain-modal.tsx b/components/domains/add-domain-modal.tsx
index 8f7bcbfa..d8928014 100644
--- a/components/domains/add-domain-modal.tsx
+++ b/components/domains/add-domain-modal.tsx
@@ -61,7 +61,7 @@ export function AddDomainModal({
return (
<Dialog open={open} onOpenChange={setOpen}>
- <DialogTrigger>{children}</DialogTrigger>
+ <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>Add Domain</DialogTitle>