mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-24 00:01:36 +01:00
fixup! Fix linting issues
This commit is contained in:
parent
2961dc3d12
commit
dfdaadeb65
|
@ -111,7 +111,8 @@ const useAPIPatch = createAPIHook("PATCH");
|
|||
const useAPIPut = createAPIHook("PUT");
|
||||
const useAPIDelete = createAPIHook("DELETE");
|
||||
|
||||
function useAPIPolling(endpoint, until, delay = 1000) {
|
||||
/* eslint-disable default-param-last */
|
||||
function useAPIPolling(endpoint, delay = 1000, until) {
|
||||
// delay ms
|
||||
const [state, setState] = useState({ state: API_STATE.INIT });
|
||||
const [getResponse, get] = useAPIGet(endpoint);
|
||||
|
|
Loading…
Reference in New Issue
Block a user