+
+
+ {
+ bHierarchy.length > 1 ?
+ (
+
+
+
+
+ ) : (null)
+ }
+
+
+
+ {bHierarchy.length > 1 && bHierarchy.slice(1, -1).map((item, ind) => {
+ //item-Country,Province,Locality,District,Village
+ if (parent_group[item] && Array.isArray(parent_group[item])) {
+ return parent_group[item].map((item1, idx) => {
+ //item1-Province-[Sinoe],District-[Jedepo,Jeade]
+ return Array.isArray(item1) && (!boundaryStatus[ind + 2]) ? (
+ //make a super-comp that contains SubBoundary View
+
+
+ {item1.map((item2) => (
+ //item2-parents name eg, sino etc
+
+ ))
+ }
+ handleViewMore(ind + 2)}
+ className="view-more"
+ >
+ View Less
+
+
+ ) : (Array.isArray(item1) && (boundaryStatus[ind + 2])) ? (
+
+
+
+ {item1.filter(() => (idx == 0 || idx == 1)).map((item2) => (
+ //item2-parents name eg, sino etc
+
+ ))
+ }
+ handleViewMore(ind + 2)}
+ className="view-more"
+ >
+ View More
+
+
+
+
+
+
+
+
+
+
+ ) : (null)
+
+
+
+ });
+ }
+ return null;
+ })}
+
+ );
+};
+
+export default CampaignBoundary;
diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/CampaignDetails.js b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/CampaignDetails.js
index 5389969c53b..e59e53ba1f3 100644
--- a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/CampaignDetails.js
+++ b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/CampaignDetails.js
@@ -65,6 +65,8 @@ const CampaignDetails = ({onSelect,props:customProps,...props}) => {
return