fix: Replace 'any' with proper React.ChangeEvent type in AudioPopover

Replace 'as any' type assertions with proper React.ChangeEvent<HTMLInputElement>
type for synthetic events passed to audio toggle handlers.
This commit is contained in:
Alex P 2025-10-06 22:13:21 +03:00
parent 141e2f9099
commit 5158c89103
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ export default function AudioPopover() {
size="SM" size="SM"
theme={audioOutputEnabled ? "light" : "primary"} theme={audioOutputEnabled ? "light" : "primary"}
text={audioOutputEnabled ? "Disable" : "Enable"} text={audioOutputEnabled ? "Disable" : "Enable"}
onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as any)} onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as React.ChangeEvent<HTMLInputElement>)}
/> />
</SettingsItem> </SettingsItem>
@ -169,7 +169,7 @@ export default function AudioPopover() {
size="SM" size="SM"
theme={audioInputEnabled ? "light" : "primary"} theme={audioInputEnabled ? "light" : "primary"}
text={audioInputEnabled ? "Disable" : "Enable"} text={audioInputEnabled ? "Disable" : "Enable"}
onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as any)} onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as React.ChangeEvent<HTMLInputElement>)}
/> />
</SettingsItem> </SettingsItem>
</> </>