use React.ChangeEvent in SettingsModal

This commit is contained in:
Timo K
2022-06-11 14:28:54 +02:00
parent 60ed54d6d3
commit 9b2e99c559

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* /*
Copyright 2022 Matrix.org Foundation C.I.C. Copyright 2022 Matrix.org Foundation C.I.C.
@@ -100,8 +99,9 @@ export const SettingsModal = (props: Props) => {
type="checkbox" type="checkbox"
checked={spatialAudio} checked={spatialAudio}
description="This will make a speaker's audio seem as if it is coming from where their tile is positioned on screen. (Experimental feature: this may impact the stability of audio.)" description="This will make a speaker's audio seem as if it is coming from where their tile is positioned on screen. (Experimental feature: this may impact the stability of audio.)"
// @ts-ignore onChange={(event: React.ChangeEvent<HTMLInputElement>) =>
onChange={(event: Event) => setSpatialAudio(event.target.checked)} setSpatialAudio(event.target.checked)
}
/> />
</FieldRow> </FieldRow>
</TabItem> </TabItem>
@@ -143,8 +143,9 @@ export const SettingsModal = (props: Props) => {
label="Show Call Inspector" label="Show Call Inspector"
type="checkbox" type="checkbox"
checked={showInspector} checked={showInspector}
// @ts-ignore onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
onChange={(e: Event) => setShowInspector(e.target.checked)} setShowInspector(e.target.checked)
}
/> />
</FieldRow> </FieldRow>
<FieldRow> <FieldRow>