visuddhinanda 3 лет назад
Родитель
Сommit
adf7095fba
1 измененных файлов с 23 добавлено и 0 удалено
  1. 23 0
      dashboard/src/components/feedback/CreateFeedback.tsx

+ 23 - 0
dashboard/src/components/feedback/CreateFeedback.tsx

@@ -0,0 +1,23 @@
+import modal from "antd/lib/modal";
+import CommentCreate from "../comment/CommentCreate";
+
+const Widget = () => {
+  const path = window.location.pathname;
+  console.log(path);
+  return (
+    <div>
+      <CommentCreate
+        resType="feedback"
+        resId="9b4f1b1e-dfe7-41dd-8a05-ae94acb61479"
+        onCreated={() => {
+          modal.info({
+            title: "反馈",
+            content: "您的意见已经提交。感谢您的反馈。",
+          });
+        }}
+      />
+    </div>
+  );
+};
+
+export default Widget;