mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
fix: AutoReload context value had incorrect names for object properties
This commit is contained in:
parent
9a5261a05d
commit
c62bca7913
@ -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]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user