- {Object.keys(configEmployeeSideBar)?.map((current, index) => {
+ {/* {Object.keys(configEmployeeSideBar)?.map((current, index) => {
const moduleData = configEmployeeSideBar?.[current];
const propsForModuleCard = {
- Icon: moduleData?.icon,
+ // Icon: moduleData?.icon,
+ icon: "SupervisorAccount",
moduleName: t(moduleData?.label),
- kpis: [],
+ metrics: [],
links: moduleData.links,
};
- return ;
- })}
+ return ;
+ // return ;
+ })} */}
+ {React.Children.map(children, (child) => React.cloneElement(child))}
>
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/sandbox/package.json b/micro-ui/web/micro-ui-internals/packages/modules/sandbox/package.json
index fb1535d1cfc..99c8138d009 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/sandbox/package.json
+++ b/micro-ui/web/micro-ui-internals/packages/modules/sandbox/package.json
@@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.2-beta.13",
- "@egovernments/digit-ui-components": "0.0.2-beta.31",
+ "@egovernments/digit-ui-components": "0.0.2-beta.41",
"react": "17.0.2",
"react-date-range": "^1.4.0",
"react-dom": "17.0.2",
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/configs/UICustomizations.js b/micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/configs/UICustomizations.js
index ccb9f0e552c..c23a8fcd25e 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/configs/UICustomizations.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/configs/UICustomizations.js
@@ -237,16 +237,23 @@ export const UICustomizations = {
return t(Digit.Utils.locale.getTransformedLocale(`SANDBOX_MASTERTYPE_${value}`));
case "SANDBOX_ACTIONS":
- const handleRedirect = (value, type) => {
+ const handleRedirect = (e, value, type) => {
+ e.stopPropagation();
if (type === "boundary") {
- window.history.pushState(null, "", `/${window.contextPath}/employee/workbench/upload-boundary?hierarchyType=${value}&from=sandbox`);
+ window.history.pushState(
+ null,
+ "",
+ `/${window.contextPath}/employee/workbench/upload-boundary?hierarchyType=${value}&from=sandbox&module=${column?.module}`
+ );
const navEvent = new PopStateEvent("popstate");
window.dispatchEvent(navEvent);
} else {
window.history.pushState(
null,
"",
- `/${window.contextPath}/employee/workbench/mdms-search-v2?moduleName=${value?.split(".")?.[0]}&masterName=${value?.split(".")?.[1]}`
+ `/${window.contextPath}/employee/workbench/mdms-search-v2?moduleName=${value?.split(".")?.[0]}&masterName=${
+ value?.split(".")?.[1]
+ }&from=sandbox&module=${column?.module}`
);
const navEvent = new PopStateEvent("popstate");
window.dispatchEvent(navEvent);
@@ -254,7 +261,7 @@ export const UICustomizations = {
};
return (