Remove some debugging

This commit is contained in:
Jackson Harper
2023-06-14 12:58:21 +08:00
parent fcf9766efc
commit 7f81771e4a
2 changed files with 6 additions and 7 deletions

View File

@ -76,13 +76,15 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
const focusedHighlightMousePos = useRef({ pageX: 0, pageY: 0 })
const [currentHighlightIdx, setCurrentHighlightIdx] = useState(0)
const [focusedHighlight, setFocusedHighlight] =
useState<Highlight | undefined>(undefined)
const [focusedHighlight, setFocusedHighlight] = useState<
Highlight | undefined
>(undefined)
const [selectionData, setSelectionData] = useSelection(highlightLocations)
const [labelsTarget, setLabelsTarget] =
useState<Highlight | undefined>(undefined)
const [labelsTarget, setLabelsTarget] = useState<Highlight | undefined>(
undefined
)
const createHighlightFromSelection = useCallback(
async (
@ -346,7 +348,6 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
highlightModalAction: 'addComment',
})
} else {
console.log('sending page tapped')
window?.webkit?.messageHandlers.viewerAction?.postMessage({
actionID: 'pageTapped',
})

View File

@ -72,8 +72,6 @@ export function Notebook(props: NotebookProps): JSX.Element {
)
const [, updateState] = useState({})
console.log('props.showConfirmDeleteNote', props.showConfirmDeleteNote)
const annotationsReducer = (
state: AnnotationInfo,
action: {