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 * @preserve
* @typedef {Object} AutoReloadOverlayBlockerContextValue * @typedef {Object} AutoReloadOverlayBlockerContextValue
* @property {(config: AutoReloadOverlayBlockerConfig) => void} lockApp * @property {(config: AutoReloadOverlayBlockerConfig) => void} lockAppWithAutoreload
* @property {() => void} unlockApp * @property {() => void} unlockAppWithAutoreload
*/ */
/** /**
@ -111,8 +111,8 @@ const AutoReloadOverlayBlockerProvider = ({ children }) => {
const autoReloadValue = React.useMemo( const autoReloadValue = React.useMemo(
() => ({ () => ({
lockApp: lockAppWithAutoreload, lockAppWithAutoreload,
unlockApp: unlockAppWithAutoreload, unlockAppWithAutoreload,
}), }),
[lockAppWithAutoreload, unlockAppWithAutoreload] [lockAppWithAutoreload, unlockAppWithAutoreload]
); );