🔧 fix(constants.tsx): reduce MAX_WORDS_HIGHLIGHT from 110 to 79 to limit the number of highlighted words in tooltips

🔥 chore(genericModal/index.tsx): remove console.log statement
This commit is contained in:
Cristhian Zanforlin Lousa 2023-07-13 12:17:22 -03:00
commit 36844cdcdb
2 changed files with 1 additions and 3 deletions

View file

@ -15,7 +15,7 @@ export const MAX_LENGTH_TO_SCROLL_TOOLTIP = 200;
* Number maximum of components to scroll on tooltips
* @constant
*/
export const MAX_WORDS_HIGHLIGHT = 110;
export const MAX_WORDS_HIGHLIGHT = 79;
/**
* The base text for subtitle of Export Dialog (Toolbar)

View file

@ -125,8 +125,6 @@ export default function GenericModal({
wordsHighlight.forEach(element => {
sumOfCaracteres = sumOfCaracteres + element.replace(/[{}]/g, "").length
});
console.log(sumOfCaracteres);
return sumOfCaracteres > MAX_WORDS_HIGHLIGHT ? "code-highlight" : "code-nohighlight"
}