Browse Source

add className

visuddhinanda 2 years ago
parent
commit
3b6ac1b72c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dashboard/src/components/template/MdView.tsx

+ 3 - 1
dashboard/src/components/template/MdView.tsx

@@ -21,7 +21,9 @@ const MdViewWidget = ({
 }: IWidget) => {
 }: IWidget) => {
   if (html && html.trim() !== "") {
   if (html && html.trim() !== "") {
     return (
     return (
-      <Paragraph>{XmlToReact(gfwClear(html), wordWidget, convertor)}</Paragraph>
+      <Paragraph className={className}>
+        {XmlToReact(gfwClear(html), wordWidget, convertor)}
+      </Paragraph>
     );
     );
   } else {
   } else {
     return <Text type="secondary">{placeholder}</Text>;
     return <Text type="secondary">{placeholder}</Text>;