@eeacms/volto-eea-website-theme 1.6.3 → 1.6.4

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 CHANGED
@@ -4,10 +4,17 @@ 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
+ ### [1.6.4](https://github.com/eea/volto-eea-website-theme/compare/1.6.3...1.6.4) - 31 January 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(diff): Fix history diff - refs #159677 [Alin Voinea - [`0188cf4`](https://github.com/eea/volto-eea-website-theme/commit/0188cf4e40ee314920f9ba33423d409a39f21cae)]
12
+
7
13
  ### [1.6.3](https://github.com/eea/volto-eea-website-theme/compare/1.6.2...1.6.3) - 30 January 2023
8
14
 
9
15
  #### :nail_care: Enhancements
10
16
 
17
+ - change(menu): use nav title if found for menu items #90 from eea/develop [ichim-david - [`f5ff1a1`](https://github.com/eea/volto-eea-website-theme/commit/f5ff1a1b017a515f997455ef564e4562e73e587a)]
11
18
  - change(menu): use nav title if found for menu items otherwise fallback to normal item title [David Ichim - [`77fd15a`](https://github.com/eea/volto-eea-website-theme/commit/77fd15aadec86831f6192ae86b4291fd903e1b1a)]
12
19
 
13
20
  ### [1.6.2](https://github.com/eea/volto-eea-website-theme/compare/1.6.1...1.6.2) - 27 January 2023
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -9,19 +9,27 @@ import PropTypes from 'prop-types';
9
9
 
10
10
  import BannerView from '@eeacms/volto-eea-website-theme/components/theme/Banner/View';
11
11
 
12
+ function IsomorphicPortal({ children }) {
13
+ const [isClient, setIsClient] = React.useState();
14
+ React.useEffect(() => setIsClient(true), []);
15
+
16
+ return isClient ? (
17
+ <Portal node={document.getElementById('page-header')}>{children}</Portal>
18
+ ) : (
19
+ children
20
+ );
21
+ }
22
+
12
23
  /**
13
24
  * View title block class.
14
25
  * @class View
15
26
  * @extends Component
16
27
  */
17
- const View = (props) => {
18
- if (__SERVER__) return <BannerView {...props} />;
19
- return (
20
- <Portal node={document.getElementById('page-header')}>
21
- <BannerView {...props} />
22
- </Portal>
23
- );
24
- };
28
+ const View = (props) => (
29
+ <IsomorphicPortal>
30
+ <BannerView {...props} />
31
+ </IsomorphicPortal>
32
+ );
25
33
 
26
34
  /**
27
35
  * Property types.