瀏覽代碼

:sparkles: 脚部添加关注

visuddhinanda 1 年之前
父節點
當前提交
628d2c31f3
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10 3
      dashboard-v4/dashboard/src/components/task/TaskEditDrawer.tsx

+ 10 - 3
dashboard-v4/dashboard/src/components/task/TaskEditDrawer.tsx

@@ -1,11 +1,13 @@
-import { Button, Drawer, Space, Tag } from "antd";
+import { Button, Drawer, Space, Typography } from "antd";
 import { useEffect, useState } from "react";
 import { useEffect, useState } from "react";
 
 
 import { ITaskData } from "../api/task";
 import { ITaskData } from "../api/task";
-import TaskEditButton from "./TaskEditButton";
 import Task from "./Task";
 import Task from "./Task";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
 import { fullUrl } from "../../utils";
 import { fullUrl } from "../../utils";
+import LikeAvatar from "../like/LikeAvatar";
+
+const { Text } = Typography;
 
 
 interface IWidget {
 interface IWidget {
   taskId?: string;
   taskId?: string;
@@ -42,7 +44,12 @@ const TaskEditDrawer = ({
         onClose={onCloseDrawer}
         onClose={onCloseDrawer}
         open={open}
         open={open}
         destroyOnClose={true}
         destroyOnClose={true}
-        footer={<div>关注</div>}
+        footer={
+          <Space>
+            <Text>关注</Text>
+            <LikeAvatar resId={taskId} resType="task" type="watch" />
+          </Space>
+        }
         extra={
         extra={
           <Button
           <Button
             type="link"
             type="link"