@@ -31,14 +31,15 @@ const CleanAirPublications = () => {
31
31
* @description set the active resource in the redux store
32
32
*/
33
33
useEffect ( ( ) => {
34
- dispatch ( setActiveResource ( t ( 'cleanAirSite.publications.navs.toolkits ' ) ) ) ;
34
+ dispatch ( setActiveResource ( t ( 'cleanAirSite.events.dropdowns.filter.options1.1 ' ) ) ) ;
35
35
} , [ dispatch , language ] ) ;
36
36
37
37
/**
38
38
* @description Dropdown list of resources
39
39
* @type {Array }
40
40
*/
41
41
const resources = [
42
+ t ( 'cleanAirSite.events.dropdowns.filter.options1.1' ) ,
42
43
t ( 'cleanAirSite.publications.navs.toolkits' ) ,
43
44
t ( 'cleanAirSite.publications.navs.reports' ) ,
44
45
t ( 'cleanAirSite.publications.navs.workshops' ) ,
@@ -122,7 +123,7 @@ const CleanAirPublications = () => {
122
123
authors_title = { item . author_title }
123
124
authors = { item . resource_authors }
124
125
link = { item . resource_link }
125
- resourceCategory = { activeResource }
126
+ resourceCategory = { item . resource_category . replace ( / _ / g , ' ' ) }
126
127
linkTitle = { item . link_title || t ( 'cleanAirSite.publications.cardBtnText' ) }
127
128
showSecondAuthor = { showSecondAuthor }
128
129
resourceFile = { item . resource_file }
@@ -221,6 +222,9 @@ const CleanAirPublications = () => {
221
222
</ div >
222
223
</ div >
223
224
< div className = "resource-body" >
225
+ { activeResource === t ( 'cleanAirSite.events.dropdowns.filter.options1.1' ) && (
226
+ < div className = "reports" > { renderData ( cleanAirResources , false ) } </ div >
227
+ ) }
224
228
{ activeResource === t ( 'cleanAirSite.publications.navs.toolkits' ) && (
225
229
< div className = "reports" > { renderData ( toolkitData , false ) } </ div >
226
230
) }
0 commit comments