@eeacms/volto-cca-policy 0.3.36 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.36",
3
+ "version": "0.3.38",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -32,7 +32,7 @@
32
32
  "@eeacms/volto-eea-design-system": "<=1.36.3",
33
33
  "@eeacms/volto-eea-website-theme": "^1.35.0",
34
34
  "@eeacms/volto-embed": "^9.1.1",
35
- "@eeacms/volto-globalsearch": "2.0.11",
35
+ "@eeacms/volto-globalsearch": "2.1.0",
36
36
  "@eeacms/volto-hero-block": "^7.1.0",
37
37
  "@eeacms/volto-openlayers-map": "*",
38
38
  "@eeacms/volto-searchlib": "2.0.16",
@@ -18,6 +18,9 @@ const MissionSignatoryProfileView = (props) => {
18
18
  const planning = result?.planning || {};
19
19
  const assessment = result?.assessment || {};
20
20
  const action = result?.action || {};
21
+ const tab_labels = result?.tab_labels || {};
22
+ const { Governance_Label, Assessment_Label, Planning_Label, Action_Label } =
23
+ tab_labels || {};
21
24
 
22
25
  const [activeIndex, setActiveIndex] = React.useState(0);
23
26
 
@@ -36,9 +39,6 @@ const MissionSignatoryProfileView = (props) => {
36
39
  }}
37
40
  />
38
41
  <div className="signatories-profile">
39
- {/* <h2>{planning?.planning_titles?.[0].Signatory}</h2> */}
40
- {/* <h2>{planning?.planning_titles?.[0].Id}</h2> */}
41
-
42
42
  <br />
43
43
 
44
44
  <Tab
@@ -53,19 +53,19 @@ const MissionSignatoryProfileView = (props) => {
53
53
  onTabChange={(e, { activeIndex }) => setActiveIndex(activeIndex)}
54
54
  panes={[
55
55
  {
56
- menuItem: 'Governance',
56
+ menuItem: Governance_Label || 'Governance',
57
57
  render: () => <GovernanceTab result={governance} />,
58
58
  },
59
59
  {
60
- menuItem: 'Assessment',
60
+ menuItem: Assessment_Label || 'Assessment',
61
61
  render: () => <AssessmentTab result={assessment} />,
62
62
  },
63
63
  {
64
- menuItem: 'Planning',
64
+ menuItem: Planning_Label || 'Planning',
65
65
  render: () => <PlanningTab result={planning} />,
66
66
  },
67
67
  {
68
- menuItem: 'Action',
68
+ menuItem: Action_Label || 'Action',
69
69
  render: () => <ActionPagesTab result={action} />,
70
70
  },
71
71
  ]}