Browse Source

没有译文标题用巴利文代替

visuddhinanda 3 năm trước cách đây
mục cha
commit
5cce06c855

+ 4 - 3
dashboard/src/pages/studio/channel/show.tsx

@@ -1,7 +1,7 @@
 import { useEffect, useState } from "react";
 import { useEffect, useState } from "react";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
 import { useParams } from "react-router-dom";
 import { useParams } from "react-router-dom";
-import { Card, Progress } from "antd";
+import { Card, Progress, Typography } from "antd";
 import { ProTable } from "@ant-design/pro-components";
 import { ProTable } from "@ant-design/pro-components";
 import { Link } from "react-router-dom";
 import { Link } from "react-router-dom";
 import { Space, Table } from "antd";
 import { Space, Table } from "antd";
@@ -14,6 +14,7 @@ import { get } from "../../../request";
 import GoBack from "../../../components/studio/GoBack";
 import GoBack from "../../../components/studio/GoBack";
 import { IChapterListResponse } from "../../../components/api/Corpus";
 import { IChapterListResponse } from "../../../components/api/Corpus";
 import { IApiResponseChannel } from "../../../components/api/Channel";
 import { IApiResponseChannel } from "../../../components/api/Channel";
+const { Text } = Typography;
 
 
 const onMenuClick: MenuProps["onClick"] = (e) => {
 const onMenuClick: MenuProps["onClick"] = (e) => {
   console.log("click", e);
   console.log("click", e);
@@ -91,10 +92,10 @@ const Widget = () => {
                     <Link
                     <Link
                       to={`/article/chapter/${row.book}-${row.paragraph}_${channelId}`}
                       to={`/article/chapter/${row.book}-${row.paragraph}_${channelId}`}
                     >
                     >
-                      {row.title}
+                      {row.title ? row.title : row.subTitle}
                     </Link>
                     </Link>
                   </div>
                   </div>
-                  <div>{row.subTitle}</div>
+                  <Text type="secondary">{row.subTitle}</Text>
                 </div>
                 </div>
               );
               );
             },
             },