mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
rename callback function
This commit is contained in:
@@ -19,7 +19,7 @@ const UploadFileForm: FC = () => {
|
|||||||
const { send: getSettings, onSuccess: onSuccessGetSettings } = useRequest(EMSESP.getSettings(), {
|
const { send: getSettings, onSuccess: onSuccessGetSettings } = useRequest(EMSESP.getSettings(), {
|
||||||
immediate: false
|
immediate: false
|
||||||
});
|
});
|
||||||
const { send: getCustomizations, onSuccess: onSuccessgetCustomizations } = useRequest(EMSESP.getCustomizations(), {
|
const { send: getCustomizations, onSuccess: onSuccessGetCustomizations } = useRequest(EMSESP.getCustomizations(), {
|
||||||
immediate: false
|
immediate: false
|
||||||
});
|
});
|
||||||
const { send: getEntities, onSuccess: onSuccessGetEntities } = useRequest(EMSESP.getEntities(), {
|
const { send: getEntities, onSuccess: onSuccessGetEntities } = useRequest(EMSESP.getEntities(), {
|
||||||
@@ -80,7 +80,7 @@ const UploadFileForm: FC = () => {
|
|||||||
onSuccessGetSettings((event) => {
|
onSuccessGetSettings((event) => {
|
||||||
saveFile(event.data, 'settings.json');
|
saveFile(event.data, 'settings.json');
|
||||||
});
|
});
|
||||||
onSuccessgetCustomizations((event) => {
|
onSuccessGetCustomizations((event) => {
|
||||||
saveFile(event.data, 'customizations.json');
|
saveFile(event.data, 'customizations.json');
|
||||||
});
|
});
|
||||||
onSuccessGetEntities((event) => {
|
onSuccessGetEntities((event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user