mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
on update for checkbox and switch (#22656)
* on update for checkbox and switch * use ? instead
This commit is contained in:
parent
7598d3fb43
commit
65370c5443
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user