Commit 65370c54 by Shavonn Brown Committed by GitHub

on update for checkbox and switch (#22656)

* on update for checkbox and switch

* use ? instead
parent 7598d3fb
......@@ -27,6 +27,14 @@ export const onUpdateDatasourceJsonDataOptionSelect = <J, S, K extends keyof J>(
updateDatasourcePluginJsonDataOption(props, key, selected.value);
};
export const onUpdateDatasourceJsonDataOptionChecked = <J, S, K extends keyof J>(
props: DataSourcePluginOptionsEditorProps<J, S>,
key: K,
val: boolean
) => (event?: React.SyntheticEvent<HTMLInputElement>) => {
updateDatasourcePluginJsonDataOption(props, key, val);
};
export const onUpdateDatasourceSecureJsonDataOptionSelect = <J, S extends {} = KeyValue>(
props: DataSourcePluginOptionsEditorProps<J, S>,
key: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment