Fix error about nesting p in div

This commit is contained in:
Manav Rathi
2024-10-10 17:06:22 +05:30
parent 5e639e9729
commit 4d3b89048c

View File

@@ -183,7 +183,12 @@ export const AttributedMiniDialog: React.FC<
)}
<DialogContent>
{attributes.message && (
<Typography color="text.muted">
<Typography
component={
typeof attributes.message == "string" ? "p" : "div"
}
color="text.muted"
>
{attributes.message}
</Typography>
)}