diff --git a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx index aeacfec5..46ac2b5c 100644 --- a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx +++ b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx @@ -30,7 +30,7 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => { const { settings } = useSettingsStore(); const { getConfig, saveConfig, getBookData, updateBooknotes } = useBookDataStore(); const { getProgress, getView, getViewsById } = useReaderStore(); - const { notebookNewAnnotation } = useNotebookStore(); + const { isNotebookPinned, isNotebookVisible } = useNotebookStore(); const { setNotebookVisible, setNotebookNewAnnotation } = useNotebookStore(); const globalReadSettings = settings.globalReadSettings; const config = getConfig(bookKey)!; @@ -103,7 +103,6 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => { setSelectedStyle(annotation.style!); setSelectedColor(annotation.color!); setSelection(selection); - console.log('show annotation', selection); }; useFoliateEvents(view, { onLoad, onDrawAnnotation, onShowAnnotation }, [config]); @@ -311,7 +310,7 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => { return (