From 7a3a6663f11ffb0e2ee707dc98ba88163e0e0fb4 Mon Sep 17 00:00:00 2001 From: Salman Date: Thu, 14 Mar 2024 03:37:54 +0530 Subject: [PATCH] fix class name typo --- frontend/src/components/v2/SecretInput/SecretInput.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx index 2dfafca74..d8d81ea97 100644 --- a/frontend/src/components/v2/SecretInput/SecretInput.tsx +++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx @@ -20,13 +20,13 @@ const syntaxHighlight = (content?: string | null, isVisible?: boolean) => { if (!isVisible) return replaceContentWithDot(content); let skipNext = false; - const formatedContent = content.split(REGEX).flatMap((el, i) => { + const formattedContent = content.split(REGEX).flatMap((el, i) => { const isInterpolationSyntax = el.startsWith("${") && el.endsWith("}"); if (isInterpolationSyntax) { skipNext = true; return ( - ${{el.slice(2, -1)} + ${{el.slice(2, -1)} } ); @@ -40,7 +40,7 @@ const syntaxHighlight = (content?: string | null, isVisible?: boolean) => { // akhilmhdh: Dont remove this br. I am still clueless how this works but weirdly enough // when break is added a line break works properly - return formatedContent.concat(
); + return formattedContent.concat(
); }; type Props = TextareaHTMLAttributes & {