Kaynağa Gözat

add className

visuddhinanda 2 yıl önce
ebeveyn
işleme
3b6ac1b72c
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      dashboard/src/components/template/MdView.tsx

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

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