Преглед изворни кода

<Paragraph className={className}>

visuddhinanda пре 2 година
родитељ
комит
46052c03f6
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      dashboard/src/components/template/MdView.tsx

+ 4 - 2
dashboard/src/components/template/MdView.tsx

@@ -1,21 +1,23 @@
 import { Typography } from "antd";
 import { Typography } from "antd";
 import { TCodeConvertor, XmlToReact } from "./utilities";
 import { TCodeConvertor, XmlToReact } from "./utilities";
-const { Text } = Typography;
+const { Paragraph } = Typography;
 
 
 interface IWidget {
 interface IWidget {
   html?: string;
   html?: string;
+  className?: string;
   placeholder?: string;
   placeholder?: string;
   wordWidget?: boolean;
   wordWidget?: boolean;
   convertor?: TCodeConvertor;
   convertor?: TCodeConvertor;
 }
 }
 const Widget = ({
 const Widget = ({
   html,
   html,
+  className,
   wordWidget = false,
   wordWidget = false,
   placeholder,
   placeholder,
   convertor,
   convertor,
 }: IWidget) => {
 }: IWidget) => {
   const jsx = html ? XmlToReact(html, wordWidget, convertor) : placeholder;
   const jsx = html ? XmlToReact(html, wordWidget, convertor) : placeholder;
-  return <Text>{jsx}</Text>;
+  return <Paragraph className={className}>{jsx}</Paragraph>;
 };
 };
 
 
 export default Widget;
 export default Widget;