Remove highlight toast notifications

This commit is contained in:
Daniel 2026-05-12 17:02:41 +02:00
parent e2c070b70b
commit 4b75edef4c

View file

@ -464,7 +464,6 @@ export default function QuizPage() {
window.getSelection?.().removeAllRanges() window.getSelection?.().removeAllRanges()
savedHighlightSelectionRef.current = null savedHighlightSelectionRef.current = null
showToast(removeExisting ? 'Highlight removed' : 'Highlighted')
}, [current?.id, manualHighlights]) }, [current?.id, manualHighlights])
const captureHighlightSelection = useCallback(() => { const captureHighlightSelection = useCallback(() => {
@ -732,7 +731,6 @@ const timerStarted = timeLeft !== null
delete next[current.id] delete next[current.id]
return next return next
}) })
showToast('Question highlights cleared')
} }
const removeJoinedHighlight = (textId, offset) => { const removeJoinedHighlight = (textId, offset) => {
@ -751,7 +749,6 @@ const timerStarted = timeLeft !== null
if (!Object.keys(nextQuestion).length) delete next[current.id] if (!Object.keys(nextQuestion).length) delete next[current.id]
return next return next
}) })
showToast('Highlight removed')
} }
const highlightsFor = (fieldKey) => manualHighlights[current?.id]?.[fieldKey] || [] const highlightsFor = (fieldKey) => manualHighlights[current?.id]?.[fieldKey] || []