Update notes modal in PDFContainer

This commit is contained in:
Jackson Harper 2023-03-24 20:42:56 +08:00
parent f658df006e
commit 10c8348f1a

View file

@ -495,14 +495,9 @@ export default function PdfArticleContainer(
key={notebookKey}
pageId={props.article.id}
highlights={highlightsRef.current}
onOpenChange={() => props.setShowHighlightsModal(false)}
/* eslint-disable @typescript-eslint/no-empty-function */
updateHighlight={() => {}}
deleteHighlightAction={(highlightId: string) => {
const event = new CustomEvent('deleteHighlightbyId', {
detail: highlightId,
})
document.dispatchEvent(event)
onClose={(updatedHighlights, deletedAnnotations) => {
console.log('closed PDF notebook: ')
props.setShowHighlightsModal(false)
}}
/>
)}