visuddhinanda 2 лет назад
Родитель
Сommit
3494b304a7
1 измененных файлов с 18 добавлено и 8 удалено
  1. 18 8
      dashboard/src/components/dict/Community.tsx

+ 18 - 8
dashboard/src/components/dict/Community.tsx

@@ -7,16 +7,15 @@ import {
   Space,
   Space,
   Typography,
   Typography,
 } from "antd";
 } from "antd";
-import { MoreOutlined, DownOutlined } from "@ant-design/icons";
+import { DownOutlined } from "@ant-design/icons";
 import { useState, useEffect } from "react";
 import { useState, useEffect } from "react";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
 import { get } from "../../request";
 import { get } from "../../request";
 import { IApiResponseDictList } from "../api/Dict";
 import { IApiResponseDictList } from "../api/Dict";
 import { IUser } from "../auth/User";
 import { IUser } from "../auth/User";
-import UserName from "../auth/UserName";
 import GrammarPop from "./GrammarPop";
 import GrammarPop from "./GrammarPop";
 
 
-const { Title } = Typography;
+const { Title, Link } = Typography;
 
 
 interface IItem<R> {
 interface IItem<R> {
   value: R;
   value: R;
@@ -158,10 +157,14 @@ const CommunityWidget = ({ word }: IWidget) => {
   const more = wordData ? (
   const more = wordData ? (
     wordData.editor.length > mainCollaboratorNum ? (
     wordData.editor.length > mainCollaboratorNum ? (
       <Dropdown menu={{ items }}>
       <Dropdown menu={{ items }}>
-        <Space>
-          更多
-          <DownOutlined />
-        </Space>
+        <Link>
+          <Space>
+            {intl.formatMessage({
+              id: `buttons.more`,
+            })}
+            <DownOutlined />
+          </Space>
+        </Link>
       </Dropdown>
       </Dropdown>
     ) : undefined
     ) : undefined
   ) : undefined;
   ) : undefined;
@@ -185,7 +188,14 @@ const CommunityWidget = ({ word }: IWidget) => {
             })}
             })}
           {meaningLow && meaningLow.length > 0 ? (
           {meaningLow && meaningLow.length > 0 ? (
             <Popover content={<Space>{meaningExtra}</Space>} placement="bottom">
             <Popover content={<Space>{meaningExtra}</Space>} placement="bottom">
-              <MoreOutlined />
+              <Link>
+                <Space>
+                  {intl.formatMessage({
+                    id: `buttons.more`,
+                  })}
+                  <DownOutlined />
+                </Space>
+              </Link>
             </Popover>
             </Popover>
           ) : undefined}
           ) : undefined}
         </Space>
         </Space>