diff --git a/es/components/ui/Alerts.js b/es/components/ui/Alerts.js index d8f56aa1..66e2ecd2 100644 --- a/es/components/ui/Alerts.js +++ b/es/components/ui/Alerts.js @@ -98,7 +98,12 @@ export var Alerts = /*#__PURE__*/function (_React$Component) { } }], [{ key: "setStore", - value: /** This must be called with the current Redux store for the app before Alerts can be used. */ + value: + /** + * This must be called with the current Redux store for the app before Alerts can be used. + * @param {*} useStore + * @param {*} isLegacy pass false to use new redux v5 dispatcher call ({ type: 'STRING', payload: ... }) + */ function setStore(useStore, isLegacy) { store = useStore; if (typeof isLegacy === 'boolean') { diff --git a/src/components/ui/Alerts.js b/src/components/ui/Alerts.js index b63f9ca4..8657a76a 100644 --- a/src/components/ui/Alerts.js +++ b/src/components/ui/Alerts.js @@ -21,7 +21,11 @@ let reduxIsLegacy = true; */ export class Alerts extends React.Component { - /** This must be called with the current Redux store for the app before Alerts can be used. */ + /** + * This must be called with the current Redux store for the app before Alerts can be used. + * @param {*} useStore + * @param {*} isLegacy pass false to use new redux v5 dispatcher call ({ type: 'STRING', payload: ... }) + */ static setStore(useStore, isLegacy){ store = useStore; if (typeof isLegacy === 'boolean') {