visuddhinanda 2 سال پیش
والد
کامیت
9ec2d7ad3f
1فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
  1. 10 10
      dashboard/src/components/template/SentRead.tsx

+ 10 - 10
dashboard/src/components/template/SentRead.tsx

@@ -98,19 +98,19 @@ const SentReadFrame = ({
       <div style={{ flex: "5", color: "#9f3a01" }} ref={boxOrg}>
       <div style={{ flex: "5", color: "#9f3a01" }} ref={boxOrg}>
         {origin?.map((item, id) => {
         {origin?.map((item, id) => {
           return (
           return (
-            <MdView
-              key={id}
-              style={{ color: "brown" }}
-              html={item.html}
-              wordWidget={true}
-              convertor={paliCode1}
-            />
+            <Text key={id}>
+              <MdView
+                style={{ color: "brown" }}
+                html={item.html}
+                wordWidget={true}
+                convertor={paliCode1}
+              />
+            </Text>
           );
           );
         })}
         })}
       </div>
       </div>
       <div style={{ flex: "5" }}>
       <div style={{ flex: "5" }}>
         {translation?.map((item, id) => {
         {translation?.map((item, id) => {
-          if (item.html.indexOf("<hr>") >= 0) console.log(item.html);
           return (
           return (
             <Text key={id}>
             <Text key={id}>
               <MdView html={item.html} />
               <MdView html={item.html} />
@@ -122,10 +122,10 @@ const SentReadFrame = ({
   );
   );
 };
 };
 
 
-interface IWidgetTerm {
+interface IWidget {
   props: string;
   props: string;
 }
 }
-const Widget = ({ props }: IWidgetTerm) => {
+const Widget = ({ props }: IWidget) => {
   const prop = JSON.parse(atob(props)) as IWidgetSentReadFrame;
   const prop = JSON.parse(atob(props)) as IWidgetSentReadFrame;
   return (
   return (
     <>
     <>