Skip to content

Commit

Permalink
addressed Scott's PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisrcao committed Nov 14, 2022
1 parent 0c18c9f commit a325bf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/chat/commented-documents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const CommentedDocuments: React.FC<IProps> = ({user, handleDocView}) => {
interface JProps {
doc: any,
index: number,
sectionOrNetworkDoc: DocumentModelType | undefined,
sectionOrNetworkDoc: DocumentModelType,
isNetworkDoc: boolean,
handleDocView: (() => void) | undefined,
}
Expand All @@ -211,9 +211,7 @@ export const MyWorkDocuments: React.FC<JProps> = ({doc, index, sectionOrNetworkD
navTab = ENavTab.kClassWork;
}
}
const title = useDocumentCaption(sectionOrNetworkDoc as DocumentModelType);
//to do : add the download hook to download network docs
// add yellow div behind the svg
const title = useDocumentCaption(sectionOrNetworkDoc);

return (
<div
Expand Down

0 comments on commit a325bf1

Please sign in to comment.