diff --git a/package.json b/package.json index 7f6f6532..ec10a74d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yearn-finance/web-lib", - "version": "3.0.57", + "version": "3.0.58", "main": "./dist/index.js", "types": "./dist/index.d.js", "files": [ diff --git a/src/contexts/useUI.tsx b/src/contexts/useUI.tsx index dec76ecc..5a0c4b62 100755 --- a/src/contexts/useUI.tsx +++ b/src/contexts/useUI.tsx @@ -20,6 +20,13 @@ const UI = createContext({ onLoadDone: NProgress.done }); +export function onLoadStart(): void { + NProgress.start(); +} +export function onLoadDone(): void { + NProgress.done(); +} + export const UIContextApp = ({children, options = defaultOptions}: { children: ReactElement, options?: TUIOptions