Procházet zdrojové kódy

Merge pull request #2158 from visuddhinanda/agile

关系图用系统term
visuddhinanda před 1 rokem
rodič
revize
08839fab34

+ 4 - 4
dashboard/src/components/template/Wbw/RelaGraphic.tsx

@@ -1,13 +1,13 @@
-import { Button, Tooltip, Typography } from "antd";
-import { CopyOutlined } from "@ant-design/icons";
+import { Typography } from "antd";
 
 import Mermaid from "../../general/Mermaid";
 import { useAppSelector } from "../../../hooks";
-import { getTerm } from "../../../reducers/term-vocabulary";
+import { getGrammar } from "../../../reducers/term-vocabulary";
 import { IWbwRelation } from "./WbwDetailRelation";
 import { IWbw } from "./WbwWord";
 import { relationWordId } from "./WbwRelationAdd";
 import { useIntl } from "react-intl";
+
 const { Text } = Typography;
 
 const pureMeaning = (input: string | null | undefined) => {
@@ -24,7 +24,7 @@ interface IWidget {
   wbwData?: IWbw[];
 }
 const RelaGraphicWidget = ({ wbwData }: IWidget) => {
-  const terms = useAppSelector(getTerm);
+  const terms = useAppSelector(getGrammar);
   const intl = useIntl();
 
   const grammarStr = (input?: string | null) => {