From 9548aad91d232d049bfd2381091b9ba20cb7db08 Mon Sep 17 00:00:00 2001 From: VineetBala-AOT Date: Wed, 10 Jan 2024 14:13:47 -0800 Subject: [PATCH] Removing character count --- .../EngagementFormTabs/Settings/ConsentMessage.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/met-web/src/components/engagement/form/EngagementFormTabs/Settings/ConsentMessage.tsx b/met-web/src/components/engagement/form/EngagementFormTabs/Settings/ConsentMessage.tsx index f76231dc3..ef994ac46 100644 --- a/met-web/src/components/engagement/form/EngagementFormTabs/Settings/ConsentMessage.tsx +++ b/met-web/src/components/engagement/form/EngagementFormTabs/Settings/ConsentMessage.tsx @@ -1,17 +1,12 @@ -import React, { useContext, useState } from 'react'; -import { Box, Grid, Typography } from '@mui/material'; +import React, { useContext } from 'react'; +import { Box, Grid } from '@mui/material'; import { MetHeader4 } from 'components/common'; import { EngagementSettingsContext } from './EngagementSettingsContext'; import RichTextEditor from 'components/common/RichTextEditor'; const ConsentMessage = () => { - const [descriptionCharCount, setDescriptionCharCount] = useState(0); const { consentMessage, setConsentMessage } = useContext(EngagementSettingsContext); - const handleContentChange = (rawText: string) => { - setDescriptionCharCount(rawText.length); - }; - const handleRichContentChange = (newState: string) => { setConsentMessage(newState); }; @@ -24,11 +19,9 @@ const ConsentMessage = () => { - Character Count: {descriptionCharCount}