@cdc/filtered-text 4.23.10 → 4.24.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/filtered-text",
3
- "version": "4.23.10",
3
+ "version": "4.24.1",
4
4
  "description": "React component for adding filtered text on dashboards.",
5
5
  "moduleName": "CdcFilteredText",
6
6
  "main": "dist/cdcfilteredtext",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
27
27
  "dependencies": {
28
- "@cdc/core": "^4.23.10",
28
+ "@cdc/core": "^4.24.1",
29
29
  "html-react-parser": "^3.0.8",
30
30
  "papaparse": "^5.3.2"
31
31
  },
@@ -33,5 +33,5 @@
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0"
35
35
  },
36
- "gitHead": "ff5b1ca0c84bb0629bc69e5a26a4a81254dbf69f"
36
+ "gitHead": "a352a3f74f4b681191e3244061dbb3621f36eec3"
37
37
  }
@@ -5,6 +5,7 @@ import ConfigContext from './ConfigContext'
5
5
  import defaults from './data/initial-state'
6
6
 
7
7
  // components
8
+ import Title from '@cdc/core/components/ui/Title'
8
9
  import ErrorBoundary from '@cdc/core/components/ErrorBoundary'
9
10
  import Loading from '@cdc/core/components/Loading'
10
11
  import EditorPanel from './components/EditorPanel'
@@ -117,11 +118,7 @@ const CdcFilteredText = ({ config: configObj, configUrl, isDashboard = false, is
117
118
  if (loading === false) {
118
119
  let body = (
119
120
  <>
120
- {title && (
121
- <header style={{ fontSize }} className={`cove-component__header ${config.theme} `}>
122
- {parse(title)}
123
- </header>
124
- )}
121
+ <Title classes={[`${config.theme}`]} title={title} style={{ fontSize }} />
125
122
  <div className={contentClasses.join(' ')}>
126
123
  <div className='cove-component__content-wrap'>
127
124
  {filterByTextColumn()