Parcourir la source

Merge pull request #2158 from visuddhinanda/agile

关系图用系统term
visuddhinanda il y a 1 an
Parent
commit
08839fab34
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      dashboard/src/components/template/Wbw/RelaGraphic.tsx

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