Explorar el Código

add refresh button

visuddhinanda hace 1 año
padre
commit
650c59b686
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      dashboard/src/components/template/SentEdit/SentEditMenu.tsx

+ 10 - 0
dashboard/src/components/template/SentEdit/SentEditMenu.tsx

@@ -8,6 +8,7 @@ import {
   LinkOutlined,
   LinkOutlined,
   FileMarkdownOutlined,
   FileMarkdownOutlined,
   DeleteOutlined,
   DeleteOutlined,
+  ReloadOutlined,
 } from "@ant-design/icons";
 } from "@ant-design/icons";
 import type { MenuProps } from "antd";
 import type { MenuProps } from "antd";
 import { ISentence } from "../SentEdit";
 import { ISentence } from "../SentEdit";
@@ -60,6 +61,8 @@ const SentEditMenuWidget = ({
       case "timeline":
       case "timeline":
         setTimelineOpen(true);
         setTimelineOpen(true);
         break;
         break;
+      case "refresh":
+        break;
       case "copy-link":
       case "copy-link":
         if (data) {
         if (data) {
           let link = `/article/para/${data.book}-${data.para}?mode=edit`;
           let link = `/article/para/${data.book}-${data.para}?mode=edit`;
@@ -77,6 +80,13 @@ const SentEditMenuWidget = ({
     }
     }
   };
   };
   const items: MenuProps["items"] = [
   const items: MenuProps["items"] = [
+    {
+      key: "refresh",
+      label: intl.formatMessage({
+        id: "buttons.refresh",
+      }),
+      icon: <ReloadOutlined />,
+    },
     {
     {
       key: "timeline",
       key: "timeline",
       label: intl.formatMessage({
       label: intl.formatMessage({