Răsfoiți Sursa

add SentWbw

visuddhinanda 2 ani în urmă
părinte
comite
8c8285a065
1 a modificat fișierele cu 22 adăugiri și 0 ștergeri
  1. 22 0
      dashboard/src/components/template/SentEdit/SentTab.tsx

+ 22 - 0
dashboard/src/components/template/SentEdit/SentTab.tsx

@@ -18,6 +18,7 @@ import { ArticleMode } from "../../article/Article";
 import { IResNumber } from "../SentEdit";
 import SentTabCopy from "./SentTabCopy";
 import { fullUrl } from "../../../utils";
+import SentWbw from "./SentWbw";
 
 const { Text } = Typography;
 
@@ -341,6 +342,27 @@ const SentTabWidget = ({
             />
           ),
         },
+        {
+          label: (
+            <span style={tabButtonStyle}>
+              <span style={{ marginRight: 12 }}>
+                {intl.formatMessage({
+                  id: "buttons.wbw",
+                })}
+              </span>
+            </span>
+          ),
+          key: "wbw",
+          children: (
+            <SentWbw
+              book={parseInt(sId[0])}
+              para={parseInt(sId[1])}
+              wordStart={parseInt(sId[2])}
+              wordEnd={parseInt(sId[3])}
+              channelsId={channelsId}
+            />
+          ),
+        },
         {
           label: <span style={tabButtonStyle}>{"关系图"}</span>,
           key: "relation-graphic",