qpp-style 9.34.3-beta.0 → 9.34.3-beta.1

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.
@@ -64,14 +64,13 @@ HeaderContainer.propTypes = {
64
64
  showCancelButton: PropTypes.bool,
65
65
  skipToContentId: PropTypes.string,
66
66
  isIESupportPage: PropTypes.bool,
67
- isDevPre: PropTypes.bool,
67
+ isDevPre: PropTypes.object,
68
68
  };
69
69
  HeaderContainer.defaultProps = {
70
70
  includeSkipToSidebar: false,
71
71
  showCancelButton: false,
72
72
  skipToContentId: null,
73
73
  isIESupportPage: false,
74
- isDevPre: false,
75
74
  };
76
75
 
77
76
  export default HeaderContainer;
@@ -5,7 +5,19 @@ import { useHeaderState } from "./hooks";
5
5
 
6
6
  const HeaderLogo = (isDevPre) => {
7
7
  const { closeMenus, RouterLink } = useHeaderState();
8
- if (RouterLink && !isDevPre) {
8
+ const showDevPre = isDevPre.isDevPre;
9
+ if (showDevPre) {
10
+ return (
11
+ <div className="header-logo">
12
+ <img
13
+ className="qpp-logo"
14
+ src="/images/qpp_logo_rgb_color.png"
15
+ alt="QPP logo"
16
+ />
17
+ </div>
18
+ );
19
+ }
20
+ if (RouterLink) {
9
21
  return (
10
22
  <RouterLink
11
23
  className="header-logo"
@@ -23,17 +35,7 @@ const HeaderLogo = (isDevPre) => {
23
35
  </RouterLink>
24
36
  );
25
37
  }
26
- if (isDevPre) {
27
- return (
28
- <div className="header-logo">
29
- <img
30
- className="qpp-logo"
31
- src="/images/qpp_logo_rgb_color.png"
32
- alt="QPP logo"
33
- />
34
- </div>
35
- );
36
- }
38
+
37
39
  return (
38
40
  <a
39
41
  className="header-logo"
@@ -52,10 +54,7 @@ const HeaderLogo = (isDevPre) => {
52
54
  };
53
55
 
54
56
  HeaderLogo.propTypes = {
55
- isDevPre: PropTypes.bool,
56
- };
57
- HeaderLogo.defaultProps = {
58
- isDevPre: false,
57
+ isDevPre: PropTypes.object,
59
58
  };
60
59
 
61
60
  export default HeaderLogo;