visuddhinanda 2 سال پیش
والد
کامیت
d5b7b9deb8
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      dashboard/src/components/general/Marked.tsx

+ 3 - 1
dashboard/src/components/general/Marked.tsx

@@ -5,12 +5,14 @@ const { Text } = Typography;
 
 interface IWidget {
   text?: string;
+  style?: React.CSSProperties;
   className?: string;
 }
-const MarkedWidget = ({ text, className }: IWidget) => {
+const MarkedWidget = ({ text, style, className }: IWidget) => {
   return (
     <Text className={className}>
       <div
+        style={style}
         className={className}
         dangerouslySetInnerHTML={{
           __html: marked.parse(text ? text : ""),