Sfoglia il codice sorgente

讨论按钮用button

visuddhinanda 2 anni fa
parent
commit
4a463cf346
1 ha cambiato i file con 2 aggiunte e 8 eliminazioni
  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 { useEffect, useState } from "react";
-import { Popover, Space, Typography } from "antd";
+import { Button, Popover, Space, Typography } from "antd";
 import {
 import {
   TagTwoTone,
   TagTwoTone,
   InfoCircleOutlined,
   InfoCircleOutlined,
@@ -182,13 +182,7 @@ const WbwPaliWidget = ({ data, display, onSave }: IWidget) => {
       <CommentBox
       <CommentBox
         resId={data.uid}
         resId={data.uid}
         resType="wbw"
         resType="wbw"
-        trigger={
-          <CommentOutlined
-            style={{
-              cursor: "pointer",
-            }}
-          />
-        }
+        trigger={<Button icon={<CommentOutlined />} type="text" title="讨论" />}
         onCommentCountChange={(count: number) => {
         onCommentCountChange={(count: number) => {
           if (count > 0) {
           if (count > 0) {
             setHasComment(true);
             setHasComment(true);