mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: use correct onChange prop name for Checkbox component
This commit is contained in:
parent
a6cb99222e
commit
14015311a5
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@ export const Mistral = ({ apiConfiguration, setApiConfigurationField }: MistralP
|
|||
<div className="flex flex-col gap-2">
|
||||
<Checkbox
|
||||
checked={apiConfiguration?.useMaximumContextWindow || false}
|
||||
onChange={(checked: boolean) => setApiConfigurationField("useMaximumContextWindow", checked)}>
|
||||
onCheckedChange={(checked) =>
|
||||
setApiConfigurationField("useMaximumContextWindow", checked === true)
|
||||
}>
|
||||
{t("settings:providers.mistral.useMaximumContextWindow")}
|
||||
</Checkbox>
|
||||
{apiConfiguration?.useMaximumContextWindow && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue