From 9b2e99c559c941c681bc12770ab1140e137e272a Mon Sep 17 00:00:00 2001 From: Timo K Date: Sat, 11 Jun 2022 14:28:54 +0200 Subject: [PATCH] use React.ChangeEvent in SettingsModal --- src/settings/SettingsModal.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx index 69e54846..1e45d557 100644 --- a/src/settings/SettingsModal.tsx +++ b/src/settings/SettingsModal.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* Copyright 2022 Matrix.org Foundation C.I.C. @@ -100,8 +99,9 @@ export const SettingsModal = (props: Props) => { type="checkbox" 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.)" - // @ts-ignore - onChange={(event: Event) => setSpatialAudio(event.target.checked)} + onChange={(event: React.ChangeEvent) => + setSpatialAudio(event.target.checked) + } /> @@ -143,8 +143,9 @@ export const SettingsModal = (props: Props) => { label="Show Call Inspector" type="checkbox" checked={showInspector} - // @ts-ignore - onChange={(e: Event) => setShowInspector(e.target.checked)} + onChange={(e: React.ChangeEvent) => + setShowInspector(e.target.checked) + } />