visuddhinanda 3 лет назад
Родитель
Сommit
4a463cf346
1 измененных файлов с 2 добавлено и 8 удалено
  1. 2 8
      dashboard/src/components/template/Wbw/WbwPali.tsx

+ 2 - 8
dashboard/src/components/template/Wbw/WbwPali.tsx

@@ -1,5 +1,5 @@
 import { useEffect, useState } from "react";
-import { Popover, Space, Typography } from "antd";
+import { Button, Popover, Space, Typography } from "antd";
 import {
   TagTwoTone,
   InfoCircleOutlined,
@@ -182,13 +182,7 @@ const WbwPaliWidget = ({ data, display, onSave }: IWidget) => {
       <CommentBox
         resId={data.uid}
         resType="wbw"
-        trigger={
-          <CommentOutlined
-            style={{
-              cursor: "pointer",
-            }}
-          />
-        }
+        trigger={<Button icon={<CommentOutlined />} type="text" title="讨论" />}
         onCommentCountChange={(count: number) => {
           if (count > 0) {
             setHasComment(true);