File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1936,8 +1936,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
19361936 URL . revokeObjectURL ( currentState . audio . src ) ;
19371937 }
19381938 // Remove all event listeners
1939- currentState . audio . removeEventListener ( 'playing' ) ;
1940- currentState . audio . removeEventListener ( 'ended' ) ;
1939+ currentState . audio . removeEventListener ( 'playing' , ( ) => console . log ( 'Playing' ) ) ;
1940+ currentState . audio . removeEventListener ( 'ended' , ( ) => console . log ( 'Ended' ) ) ;
19411941 }
19421942
19431943 if ( currentState . sourceBuffer ) {
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ export const TTSButton = (props: Props) => {
1919
2020 return (
2121 < button
22- class = { `py-2 px-2 justify-center font-semibold text-white focus:outline-none flex items-center disabled:opacity-50 disabled:cursor-not-allowed transition-all filter hover:brightness-90 active:brightness-75 ${ props . class ?? '' } ` }
22+ class = { `py-2 px-2 justify-center font-semibold text-white focus:outline-none flex items-center disabled:opacity-50 disabled:cursor-not-allowed transition-all filter hover:brightness-90 active:brightness-75 ${
23+ props . class ?? ''
24+ } `}
2325 style = { {
2426 background : 'transparent' ,
2527 border : 'none' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const XIcon = (props: JSX.SvgSVGAttributes<SVGSVGElement> & { isCurrentCo
77 height = "24"
88 viewBox = "0 0 24 24"
99 fill = "none"
10- stroke = { props . isCurrentColor ? 'currentColor' : ( props . color ?? defaultButtonColor ) }
10+ stroke = { props . isCurrentColor ? 'currentColor' : props . color ?? defaultButtonColor }
1111 stroke-width = "2"
1212 stroke-linecap = "round"
1313 stroke-linejoin = "round"
You can’t perform that action at this time.
0 commit comments