qpp-style 9.41.1 → 9.41.2

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.
@@ -46,6 +46,7 @@ const HeaderSearchBar = () => {
46
46
  id="query"
47
47
  name="query"
48
48
  type="text"
49
+ maxLength="50"
49
50
  />
50
51
  </div>
51
52
  <button
@@ -1,18 +1,21 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import {
5
- NavLinkContainer,
6
- NavLinkInline,
7
- NavLinkDrawer,
8
- } from "../Links";
4
+ import { NavLinkContainer, NavLinkInline, NavLinkDrawer } from "../Links";
9
5
  import AnimationGroup from "../AnimationGroup/AnimationGroup";
10
6
  import { PracticeDetails, IndividualDetails } from "../Details";
11
7
  import SanitizedContent from "../../SanitizedContent";
12
8
  import * as SvgComponents from "../../../lib/SvgComponents.jsx";
13
9
  import CmsSwitchLink from "../Links/CmsSwitchLink";
14
10
 
15
- const DynamicContent = ({contentItems, className, recursionId, config, isExpandedState, expand}) => {
11
+ const DynamicContent = ({
12
+ contentItems,
13
+ className,
14
+ recursionId,
15
+ config,
16
+ isExpandedState,
17
+ expand,
18
+ }) => {
16
19
  const { openDrawersByDefault, linkActiveFunc, linkCallback } = config;
17
20
  let linkClass = isExpandedState ? "link-inline" : "link-collapsed";
18
21
  const containerRecursionId = recursionId ? recursionId : 0;
@@ -81,12 +84,8 @@ const DynamicContent = ({contentItems, className, recursionId, config, isExpande
81
84
  >
82
85
  <PracticeDetails
83
86
  practiceName={item.practiceName}
84
- {...(!item.practiceTin
85
- ? {}
86
- : { practiceTin: item.practiceTin })}
87
- {...(!item.apmEntityId
88
- ? {}
89
- : { apmEntityId: item.apmEntityId })}
87
+ {...(!item.practiceTin ? {} : { practiceTin: item.practiceTin })}
88
+ {...(!item.apmEntityId ? {} : { apmEntityId: item.apmEntityId })}
90
89
  {...(!item.vgId ? {} : { vgId: item.vgId })}
91
90
  {...(!item.cpcPlusId ? {} : { cpcPlusId: item.cpcPlusId })}
92
91
  {...(!item.pcfId ? {} : { pcfId: item.pcfId })}
@@ -159,10 +158,7 @@ const DynamicContent = ({contentItems, className, recursionId, config, isExpande
159
158
 
160
159
  if (className === "link-container") {
161
160
  return (
162
- <div
163
- className="animation-flat"
164
- key={`nav-link-container-${recursionId}`}
165
- >
161
+ <div className="animation-flat" key={`nav-link-container-${recursionId}`}>
166
162
  <NavLinkContainer
167
163
  listOfLinks={itemsMarkup}
168
164
  linkActiveFunc={linkActiveFunc}
@@ -174,7 +170,7 @@ const DynamicContent = ({contentItems, className, recursionId, config, isExpande
174
170
  }
175
171
  };
176
172
 
177
- export default DynamicContent
173
+ export default DynamicContent;
178
174
 
179
175
  DynamicContent.propTypes = {
180
176
  config: PropTypes.object,
@@ -182,5 +178,5 @@ DynamicContent.propTypes = {
182
178
  contentItems: PropTypes.array,
183
179
  className: PropTypes.string,
184
180
  recursionId: PropTypes.number,
185
- expand: PropTypes.func
181
+ expand: PropTypes.func,
186
182
  };