fix: AutoReload context value had incorrect names for object properties

This commit is contained in:
Josh 2023-04-27 10:30:10 +01:00
parent 9a5261a05d
commit c62bca7913

View File

@ -34,8 +34,8 @@ import pxToRem from '../utils/pxToRem';
/**
* @preserve
* @typedef {Object} AutoReloadOverlayBlockerContextValue
* @property {(config: AutoReloadOverlayBlockerConfig) => void} lockApp
* @property {() => void} unlockApp
* @property {(config: AutoReloadOverlayBlockerConfig) => void} lockAppWithAutoreload
* @property {() => void} unlockAppWithAutoreload
*/
/**
@ -111,8 +111,8 @@ const AutoReloadOverlayBlockerProvider = ({ children }) => {
const autoReloadValue = React.useMemo(
() => ({
lockApp: lockAppWithAutoreload,
unlockApp: unlockAppWithAutoreload,
lockAppWithAutoreload,
unlockAppWithAutoreload,
}),
[lockAppWithAutoreload, unlockAppWithAutoreload]
);