From cd35f9d0ef5e8f317bd21f1a604f81d8d687bb24 Mon Sep 17 00:00:00 2001 From: utku-ozturk Date: Mon, 29 Jul 2024 00:34:55 +0300 Subject: [PATCH] add comment --- es/components/ui/Alerts.js | 7 ++++++- src/components/ui/Alerts.js | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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') {