diff --git a/micro-ui/web/packages/core/src/Module.js b/micro-ui/web/packages/core/src/Module.js index 412bf714589..047b8b206a4 100644 --- a/micro-ui/web/packages/core/src/Module.js +++ b/micro-ui/web/packages/core/src/Module.js @@ -20,9 +20,7 @@ const DigitUIWrapper = ({ stateCode="pg", enabledModules, moduleReducers,default if (isLoading) { return ; } - - const i18n = getI18n(); return ( @@ -48,54 +46,66 @@ export const DigitUI = ({ registry, enabledModules, moduleReducers ,defaultLandi const PrivacyProvider = Digit.Contexts.PrivacyProvider; - return ( -
+ // return ( + //
+ // + // + // + // { + // Digit.Utils.setPrivacyObject({}); + // setPrivacy({}); + // }, + // getPrivacy: () => { + // const privacyObj = Digit.Utils.getPrivacyObject(); + // setPrivacy(privacyObj); + // return privacyObj; + // }, + // /* Descoped method to update privacy object */ + // updatePrivacyDescoped: (_data) => { + // const privacyObj = Digit.Utils.getAllPrivacyObject(); + // const newObj = { ...privacyObj, [window.location.pathname]: _data }; + // Digit.Utils.setPrivacyObject({ ...newObj }); + // setPrivacy(privacyObj?.[window.location.pathname] || {}); + // }, + // /** + // * Main Method to update the privacy object anywhere in the application + // * + // * @author jagankumar-egov + // * + // * Feature :: Privacy + // * + // * @example + // * const { privacy , updatePrivacy } = Digit.Hooks.usePrivacyContext(); + // */ + // updatePrivacy: (uuid, fieldName) => { + // setPrivacy(Digit.Utils.updatePrivacy(uuid, fieldName) || {}); + // }, + // }} + // > + // + // {/*
Core Module Dummy
*/} + // {/* */} + //
+ //
+ //
+ //
+ //
+ // ); + +
- { - Digit.Utils.setPrivacyObject({}); - setPrivacy({}); - }, - getPrivacy: () => { - const privacyObj = Digit.Utils.getPrivacyObject(); - setPrivacy(privacyObj); - return privacyObj; - }, - /* Descoped method to update privacy object */ - updatePrivacyDescoped: (_data) => { - const privacyObj = Digit.Utils.getAllPrivacyObject(); - const newObj = { ...privacyObj, [window.location.pathname]: _data }; - Digit.Utils.setPrivacyObject({ ...newObj }); - setPrivacy(privacyObj?.[window.location.pathname] || {}); - }, - /** - * Main Method to update the privacy object anywhere in the application - * - * @author jagankumar-egov - * - * Feature :: Privacy - * - * @example - * const { privacy , updatePrivacy } = Digit.Hooks.usePrivacyContext(); - */ - updatePrivacy: (uuid, fieldName) => { - setPrivacy(Digit.Utils.updatePrivacy(uuid, fieldName) || {}); - }, - }} - > - {/* */} -
Core Module Dummy
+ + {/*
Core Module Dummy
*/} {/* */} -
- ); }; const componentsToRegister = {