Skip to content

Scheduling infrastructure for absolutely everyone.

fix(ui): prevent nested <p> hydration errors in confirmation dialogs (#25643)

Mehmet Sungur9c4754dfcc6d
diff --git a/packages/ui/components/dialog/ConfirmationDialogContent.tsx b/packages/ui/components/dialog/ConfirmationDialogContent.tsx
index 6e6930ab792..218174938ff 100644
--- a/packages/ui/components/dialog/ConfirmationDialogContent.tsx
+++ b/packages/ui/components/dialog/ConfirmationDialogContent.tsx
@@ -68,8 +68,8 @@ export const ConfirmationContent = (props: PropsWithChildren<ConfirmationDialogC
<DialogPrimitive.Title className="font-cal text-emphasis mt-2 text-xl">
{title}
</DialogPrimitive.Title>
- <DialogPrimitive.Description className="text-subtle text-sm">
- {children}
+ <DialogPrimitive.Description asChild>
+ <div className="text-subtle text-sm">{children}</div>
</DialogPrimitive.Description>
</div>
</div>