Skip to content

Commit 204c5a6

Browse files
committed
Fix lint errors and formatting
1 parent 719ced5 commit 204c5a6

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/components/Bot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

src/components/buttons/TTSButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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',

src/components/icons/XIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)