mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: correct TypeScript type for VSCodeCheckbox onChange event
This commit is contained in:
parent
a46783ffbe
commit
f51d4a0a49
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { HTMLAttributes, ChangeEvent } from "react"
|
||||
import { HTMLAttributes } from "react"
|
||||
import { useAppTranslation } from "@/i18n/TranslationContext"
|
||||
import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
|
||||
import { AlertCircle } from "lucide-react"
|
||||
|
|
@ -48,8 +48,8 @@ export const DiagnosticsSettings = ({
|
|||
<div>
|
||||
<VSCodeCheckbox
|
||||
checked={includeDiagnostics}
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||
setCachedStateField("includeDiagnostics", e.target.checked)
|
||||
onChange={(e: Event) =>
|
||||
setCachedStateField("includeDiagnostics", (e.target as HTMLInputElement).checked)
|
||||
}
|
||||
data-testid="include-diagnostics-checkbox">
|
||||
<label className="block font-medium mb-1">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue