Explorar o código

add className

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
3b6ac1b72c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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>;