@eeacms/volto-cca-policy 0.1.80 → 0.1.81
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/components/theme/Header.jsx +16 -18
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [0.1.81](https://github.com/eea/volto-cca-policy/compare/0.1.80...0.1.81) - 21 February 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Don't hide the section header [Tiberiu Ichim - [`f7d9ded`](https://github.com/eea/volto-cca-policy/commit/f7d9ded5932b8636d3f485e5184639f8d88f3d33)]
|
|
7
12
|
### [0.1.80](https://github.com/eea/volto-cca-policy/compare/0.1.79...0.1.80) - 21 February 2024
|
|
8
13
|
|
|
9
14
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -230,24 +230,22 @@ const EEAHeader = (props) => {
|
|
|
230
230
|
{item.title}
|
|
231
231
|
</a>
|
|
232
232
|
)}
|
|
233
|
-
renderMenuItem={(item, options, props) =>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
)
|
|
250
|
-
}
|
|
233
|
+
renderMenuItem={(item, options, props) => (
|
|
234
|
+
<UniversalLink
|
|
235
|
+
openLinkInNewTab={false}
|
|
236
|
+
href={item.nonclickable ? null : item.url || '/'}
|
|
237
|
+
title={item.nav_title || item.title}
|
|
238
|
+
{...(options || {})}
|
|
239
|
+
className={cx(options?.className, {
|
|
240
|
+
active: item.url === router_pathname,
|
|
241
|
+
'item-nonclickable': item.nonclickable,
|
|
242
|
+
})}
|
|
243
|
+
>
|
|
244
|
+
{props?.iconPosition !== 'right' && props?.children}
|
|
245
|
+
<span>{item.nav_title || item.title}</span>
|
|
246
|
+
{props?.iconPosition === 'right' && props?.children}
|
|
247
|
+
</UniversalLink>
|
|
248
|
+
)}
|
|
251
249
|
></Header.Main>
|
|
252
250
|
</Header>
|
|
253
251
|
);
|