Browse Source

:fire: log

visuddhinanda 2 years ago
parent
commit
6a8b82111d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dashboard/src/components/discussion/DiscussionItem.tsx

+ 2 - 2
dashboard/src/components/discussion/DiscussionItem.tsx

@@ -3,11 +3,12 @@ import { useState } from "react";
 import { IUser } from "../auth/User";
 import CommentShow from "./DiscussionShow";
 import CommentEdit from "./DiscussionEdit";
+import { TResType } from "./DiscussionListCard";
 
 export interface IComment {
   id?: string; //id未提供为新建
   resId?: string;
-  resType?: string;
+  resType?: TResType;
   user: IUser;
   parent?: string;
   title?: string;
@@ -24,7 +25,6 @@ interface IWidget {
 }
 const DiscussionItemWidget = ({ data, onSelect, onCreated }: IWidget) => {
   const [edit, setEdit] = useState(false);
-  console.log(data);
   return (
     <div style={{ display: "flex" }}>
       <div style={{ width: "2em" }}>