Remove highlight toast notifications
This commit is contained in:
parent
e2c070b70b
commit
4b75edef4c
1 changed files with 0 additions and 3 deletions
|
|
@ -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] || []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue