瀏覽代碼

add copy button

visuddhinanda 3 年之前
父節點
當前提交
c979013b74
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dashboard/src/components/template/SentEdit/SuggestionToolbar.tsx

+ 2 - 0
dashboard/src/components/template/SentEdit/SuggestionToolbar.tsx

@@ -56,6 +56,8 @@ const SuggestionToolbarWidget = ({ data, isPr = false, onAccept }: IWidget) => {
         }}
         }}
       />
       />
       {CommentCount}
       {CommentCount}
+      <Divider type="vertical" />
+      <Text copyable={{ text: data.content }}></Text>
     </Space>
     </Space>
   );
   );
   return <Text type="secondary">{isPr ? prButton : normalButton}</Text>;
   return <Text type="secondary">{isPr ? prButton : normalButton}</Text>;