visuddhinanda 3 лет назад
Родитель
Сommit
5c1ab8dcd1
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      dashboard/src/components/template/SentEdit.tsx

+ 13 - 0
dashboard/src/components/template/SentEdit.tsx

@@ -36,6 +36,10 @@ export interface ISentenceId {
 }
 }
 export interface IWidgetSentEditInner {
 export interface IWidgetSentEditInner {
   id: string;
   id: string;
+  book: number;
+  para: number;
+  wordStart: number;
+  wordEnd: number;
   channels?: string[];
   channels?: string[];
   origin?: ISentence[];
   origin?: ISentence[];
   translation?: ISentence[];
   translation?: ISentence[];
@@ -49,6 +53,11 @@ export interface IWidgetSentEditInner {
 }
 }
 export const SentEditInner = ({
 export const SentEditInner = ({
   id,
   id,
+  book,
+  para,
+  wordStart,
+  wordEnd,
+  channels,
   origin,
   origin,
   translation,
   translation,
   path,
   path,
@@ -65,6 +74,10 @@ export const SentEditInner = ({
       <SentMenu book={parseInt(sid[0])} para={parseInt(sid[1])}>
       <SentMenu book={parseInt(sid[0])} para={parseInt(sid[1])}>
         <SentContent
         <SentContent
           sid={id}
           sid={id}
+          book={book}
+          para={para}
+          wordStart={wordStart}
+          wordEnd={wordEnd}
           origin={origin}
           origin={origin}
           translation={translation}
           translation={translation}
           layout={layout}
           layout={layout}