Parcourir la source

add refresh button

visuddhinanda il y a 1 an
Parent
commit
650c59b686
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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,
   FileMarkdownOutlined,
   DeleteOutlined,
+  ReloadOutlined,
 } from "@ant-design/icons";
 import type { MenuProps } from "antd";
 import { ISentence } from "../SentEdit";
@@ -60,6 +61,8 @@ const SentEditMenuWidget = ({
       case "timeline":
         setTimelineOpen(true);
         break;
+      case "refresh":
+        break;
       case "copy-link":
         if (data) {
           let link = `/article/para/${data.book}-${data.para}?mode=edit`;
@@ -77,6 +80,13 @@ const SentEditMenuWidget = ({
     }
   };
   const items: MenuProps["items"] = [
+    {
+      key: "refresh",
+      label: intl.formatMessage({
+        id: "buttons.refresh",
+      }),
+      icon: <ReloadOutlined />,
+    },
     {
       key: "timeline",
       label: intl.formatMessage({