Browse Source

add DiscussionAnchor

visuddhinanda 2 years ago
parent
commit
d2efc69196
1 changed files with 5 additions and 2 deletions
  1. 5 2
      dashboard/src/components/discussion/DiscussionBox.tsx

+ 5 - 2
dashboard/src/components/discussion/DiscussionBox.tsx

@@ -1,8 +1,9 @@
 import { useState } from "react";
-import { Drawer } from "antd";
+import { Divider, Drawer } from "antd";
 import CommentTopic from "./DiscussionTopic";
 import CommentListCard, { TResType } from "./DiscussionListCard";
 import { IComment } from "./DiscussionItem";
+import DiscussionAnchor from "./DiscussionAnchor";
 
 export interface IAnswerCount {
   id: string;
@@ -54,6 +55,8 @@ const DiscussionBoxWidget = ({
         open={open}
         maskClosable={false}
       >
+        <DiscussionAnchor resId={resId} resType={resType} />
+        <Divider></Divider>
         <CommentListCard
           resId={resId}
           resType={resType}
@@ -66,7 +69,7 @@ const DiscussionBoxWidget = ({
           }}
         />
         <Drawer
-          title="回答"
+          title="Answer"
           width={480}
           onClose={() => {
             setChildrenDrawer(false);