mirror of https://github.com/jetkvm/kvm.git
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:
parent
141e2f9099
commit
5158c89103
|
|
@ -128,7 +128,7 @@ export default function AudioPopover() {
|
|||
size="SM"
|
||||
theme={audioOutputEnabled ? "light" : "primary"}
|
||||
text={audioOutputEnabled ? "Disable" : "Enable"}
|
||||
onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as any)}
|
||||
onClick={() => handleAudioOutputEnabledToggle({ target: { checked: !audioOutputEnabled } } as React.ChangeEvent<HTMLInputElement>)}
|
||||
/>
|
||||
</SettingsItem>
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ export default function AudioPopover() {
|
|||
size="SM"
|
||||
theme={audioInputEnabled ? "light" : "primary"}
|
||||
text={audioInputEnabled ? "Disable" : "Enable"}
|
||||
onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as any)}
|
||||
onClick={() => handleAudioInputEnabledToggle({ target: { checked: !audioInputEnabled } } as React.ChangeEvent<HTMLInputElement>)}
|
||||
/>
|
||||
</SettingsItem>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Reference in New Issue