visuddhinanda пре 3 година
родитељ
комит
3dff513a5f
1 измењених фајлова са 4 додато и 11 уклоњено
  1. 4 11
      dashboard/src/components/comment/CommentEdit.tsx

+ 4 - 11
dashboard/src/components/comment/CommentEdit.tsx

@@ -1,21 +1,14 @@
-import { useState } from "react";
 import { useIntl } from "react-intl";
 import { Button, Card } from "antd";
-import { Input, message } from "antd";
-import { SaveOutlined } from "@ant-design/icons";
-import {
-  ProForm,
-  ProFormText,
-  ProFormTextArea,
-} from "@ant-design/pro-components";
+import { message } from "antd";
+
+import { ProForm, ProFormTextArea } from "@ant-design/pro-components";
 import { Col, Row, Space } from "antd";
 
 import { IComment } from "./CommentItem";
-import { post, put } from "../../request";
+import { put } from "../../request";
 import { ICommentRequest, ICommentResponse } from "../api/Comment";
 
-const { TextArea } = Input;
-
 interface IWidget {
   data: IComment;
   onCreated?: Function;