scripts/core/editor3/components/HighlightsPopup.tsx
Function component
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
component() {
let highlightsAndSuggestions = [];
let data;
if (this.styleBasedHighlightsExist()) {
Function createHighlight
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createHighlight(type, h, highlightId) {
if (type === 'ANNOTATION') {
return (
<AnnotationPopup
annotation={h}