Procházet zdrojové kódy

Merge pull request #1797 from visuddhinanda/agile

Paragraph ->Text
visuddhinanda před 2 roky
rodič
revize
e8108753df
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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>;