visuddhinanda пре 2 година
родитељ
комит
52826940fa
1 измењених фајлова са 10 додато и 5 уклоњено
  1. 10 5
      dashboard/src/components/general/Marked.tsx

+ 10 - 5
dashboard/src/components/general/Marked.tsx

@@ -1,15 +1,20 @@
+import { Typography } from "antd";
 import { marked } from "marked";
 
+const { Text } = Typography;
+
 interface IWidget {
   text?: string;
 }
 const MarkedWidget = ({ text }: IWidget) => {
   return (
-    <div
-      dangerouslySetInnerHTML={{
-        __html: marked.parse(text ? text : ""),
-      }}
-    />
+    <Text>
+      <div
+        dangerouslySetInnerHTML={{
+          __html: marked.parse(text ? text : ""),
+        }}
+      />
+    </Text>
   );
 };