@@ -272,7 +272,6 @@ const ChatHistoryEntry = React.memo(({ conversationID, entryIndex }: ChatHistory
272272 ) ;
273273
274274 return (
275- // @ts -expect-error: TS2786
276275 < Message
277276 actions = { actions }
278277 avatar = { isDarkTheme ? aiAvatarDark : aiAvatar }
@@ -387,7 +386,6 @@ const ChatHistoryEntry = React.memo(({ conversationID, entryIndex }: ChatHistory
387386
388387 if ( entry . who === 'user' ) {
389388 return (
390- // @ts -expect-error: TS2786
391389 < Message
392390 avatar = { userAvatar }
393391 avatarProps = { { className : 'ols-plugin__avatar' , isBordered : true } }
@@ -504,7 +502,7 @@ const GeneralPage: React.FC<GeneralPageProps> = ({
504502
505503 const chatHistoryEndRef = React . useRef < HTMLDivElement | null > ( null ) ;
506504
507- const scrollIntoView = React . useCallback ( ( behavior = 'smooth' ) => {
505+ const scrollIntoView = React . useCallback ( ( behavior : ScrollBehavior = 'smooth' ) => {
508506 defer ( ( ) => {
509507 chatHistoryEndRef ?. current ?. scrollIntoView ( { behavior } ) ;
510508 } ) ;
@@ -555,23 +553,18 @@ const GeneralPage: React.FC<GeneralPageProps> = ({
555553 } , [ chatHistory , setCopied , setNotCopied ] ) ;
556554
557555 return (
558- // @ts -expect-error: TS2786
559556 < Chatbot
560557 ariaLabel = { ariaLabel }
561558 className = { className }
562559 data-test = "ols-plugin__popover"
563560 displayMode = { onCollapse ? ChatbotDisplayMode . fullscreen : ChatbotDisplayMode . default }
564561 >
565- { /* @ts -expect-error: TS2786 */ }
566562 < ChatbotHeader >
567- { /* @ts -expect-error: TS2786 */ }
568563 < ChatbotHeaderMain >
569- { /* @ts -expect-error: TS2786 */ }
570564 < ChatbotHeaderTitle className = "ols-plugin__header-title" >
571565 < Title headingLevel = "h1" > { t ( 'Red Hat OpenShift Lightspeed' ) } </ Title >
572566 </ ChatbotHeaderTitle >
573567 </ ChatbotHeaderMain >
574- { /* @ts -expect-error: TS2786 */ }
575568 < ChatbotHeaderActions className = "ols-plugin__header-actions" >
576569 { chatHistory . size > 0 && (
577570 < >
@@ -629,9 +622,7 @@ const GeneralPage: React.FC<GeneralPageProps> = ({
629622 </ ChatbotHeaderActions >
630623 </ ChatbotHeader >
631624
632- { /* @ts -expect-error: TS2786 */ }
633625 < ChatbotContent aria-label = { t ( 'OpenShift Lightspeed chat history' ) } >
634- { /* @ts -expect-error: TS2786 */ }
635626 < MessageBox >
636627 < div className = "ols-plugin__welcome-logo" > </ div >
637628 < Title className = "ols-plugin__welcome-subheading" headingLevel = "h5" >
@@ -658,10 +649,8 @@ const GeneralPage: React.FC<GeneralPageProps> = ({
658649 </ ChatbotContent >
659650
660651 { authStatus !== AuthStatus . NotAuthenticated && authStatus !== AuthStatus . NotAuthorized && (
661- // @ts -expect-error: TS2786
662652 < ChatbotFooter >
663653 < Prompt scrollIntoView = { scrollIntoView } />
664- { /* @ts -expect-error: TS2786 */ }
665654 < ChatbotFootnote label = { t ( 'Always review AI generated content prior to use.' ) } />
666655 < div className = "ols-plugin__footnote" >
667656 { t ( 'For questions or feedback about OpenShift Lightspeed,' ) } { ' ' }
0 commit comments