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:
David Lechner
2021-01-27 10:25:08 -06:00
parent 68fb7e68f2
commit c7803fed19
+3 -1
View File
@@ -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>