소스 검색

add chapterStrLen

visuddhinanda 3 년 전
부모
커밋
9472c53e03
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11 11
      dashboard/src/components/corpus/PaliChapterListByTag.tsx

+ 11 - 11
dashboard/src/components/corpus/PaliChapterListByTag.tsx

@@ -27,6 +27,8 @@ const PaliChapterListByTagWidget = (prop: IWidgetPaliChapterListByTag) => {
             Path: item.path,
             Path: item.path,
             Book: item.book,
             Book: item.book,
             Paragraph: item.paragraph,
             Paragraph: item.paragraph,
+            chapterStrLen: item.chapter_strlen,
+            paragraphCount: item.chapter_len,
             progressLine: item.progress_line,
             progressLine: item.progress_line,
           };
           };
         });
         });
@@ -38,17 +40,15 @@ const PaliChapterListByTagWidget = (prop: IWidgetPaliChapterListByTag) => {
   }, [prop.tag]);
   }, [prop.tag]);
 
 
   return (
   return (
-    <>
-      <PaliChapterList
-        data={tableData}
-        maxLevel={1}
-        onChapterClick={(e: IChapterClickEvent) => {
-          if (typeof prop.onChapterClick !== "undefined") {
-            prop.onChapterClick(e);
-          }
-        }}
-      />
-    </>
+    <PaliChapterList
+      data={tableData}
+      maxLevel={1}
+      onChapterClick={(e: IChapterClickEvent) => {
+        if (typeof prop.onChapterClick !== "undefined") {
+          prop.onChapterClick(e);
+        }
+      }}
+    />
   );
   );
 };
 };