Browse Source

Paragraph ->Text

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

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

@@ -1,7 +1,7 @@
 import { Typography } from "antd";
 import { TCodeConvertor, XmlToReact } from "./utilities";
 import { gfwClear } from "../../gfwlist";
-const { Paragraph, Text } = Typography;
+const { Text } = Typography;
 
 interface IWidget {
   html?: string | null;
@@ -21,9 +21,9 @@ const MdViewWidget = ({
 }: IWidget) => {
   if (html && html.trim() !== "") {
     return (
-      <Paragraph className={className}>
+      <Text className={className}>
         {XmlToReact(gfwClear(html), wordWidget, convertor)}
-      </Paragraph>
+      </Text>
     );
   } else {
     return <Text type="secondary">{placeholder}</Text>;