1- import React , { useState } from "react" ;
1+ import React , { useState } from "react" ;
22
3- import { Link , Spacing , InlineText } from "../../index" ;
3+ import Link from "../../components/Link/Link" ;
4+ import Spacing from "../../components/Separation/Spacing" ;
5+ import InlineText from "../../components/Typography/InlineText" ;
46
57export interface ContentBlobTogglerProps extends React . HTMLAttributes < HTMLDivElement > {
68 /**
@@ -50,7 +52,7 @@ export function ContentBlobToggler({
5052 ...otherProps
5153} : ContentBlobTogglerProps ) {
5254 const [ isExtended , setViewState ] = useState ( startExtended ) ;
53- const handlerToggleView = ( event : any ) => {
55+ const handlerToggleView = ( event : React . MouseEvent < HTMLAnchorElement > ) => {
5456 event . preventDefault ( ) ;
5557 event . stopPropagation ( ) ;
5658 setViewState ( ! isExtended ) ;
@@ -63,11 +65,12 @@ export function ContentBlobToggler({
6365 { previewContent }
6466 { enableToggler && (
6567 < >
66- { " " } …{ " " }
68+ { " " }
69+ …{ " " }
6770 < Link
6871 href = "#more"
6972 data-test-id = { "content-blob-toggler-more-link" }
70- onClick = { ( e : any ) => {
73+ onClick = { ( e : React . MouseEvent < HTMLAnchorElement > ) => {
7174 handlerToggleView ( e ) ;
7275 } }
7376 >
@@ -81,11 +84,11 @@ export function ContentBlobToggler({
8184 { fullviewContent }
8285 { enableToggler && (
8386 < div >
84- { forceInline ? < > { " " } </ > : < Spacing size = "small" /> }
87+ { forceInline ? < > </ > : < Spacing size = "small" /> }
8588 < Link
8689 data-test-id = { "content-blob-toggler-less-link" }
8790 href = "#less"
88- onClick = { ( e : any ) => {
91+ onClick = { ( e : React . MouseEvent < HTMLAnchorElement > ) => {
8992 handlerToggleView ( e ) ;
9093 } }
9194 >
0 commit comments