mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 21:26:46 +00:00
Removed duplicated code when building ShlinkApiClient
This commit is contained in:
@@ -51,3 +51,5 @@ export const useToggle = (initialValue = false) => {
|
||||
|
||||
return [ flag, () => setFlag(!flag) ];
|
||||
};
|
||||
|
||||
export const wait = (seconds) => new Promise((resolve) => setTimeout(resolve, seconds));
|
||||
|
||||
Reference in New Issue
Block a user