mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update notes modal in PDFContainer
This commit is contained in:
parent
f658df006e
commit
10c8348f1a
1 changed files with 3 additions and 8 deletions
|
|
@ -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)
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue