mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
fix wrong event type on switch
Fixes:
index.js:1 Warning: Failed prop type: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.
This commit is contained in:
@@ -211,7 +211,9 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
|
||||
<FormGroup label="Developer">
|
||||
<Switch
|
||||
checked={i18n.pseudolocalize !== false}
|
||||
onClick={() => pseudolocalize(!i18n.pseudolocalize)}
|
||||
onChange={() =>
|
||||
pseudolocalize(!i18n.pseudolocalize)
|
||||
}
|
||||
label="Pseudolocalize"
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
Reference in New Issue
Block a user