Skip to content

Commit

Permalink
Merge pull request #362 from OpenCatalogi/feautre/OP-91/headerRefactor
Browse files Browse the repository at this point in the history
feautre/OP-91/headerRefactor
  • Loading branch information
remko48 authored Oct 25, 2023
2 parents b76c8af + 1fc0db2 commit 673837e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pwa/src/templates/templateParts/header/HeaderContent.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@
{
"label": "Initiatives",
"type": "internal",
"current": "pathname === \"/components\" && filters.developmentStatus === \"concept\"",
"current": {
"pathname": "/components",
"operator": "includes",
"filterCondition": {
"filter": "developmentStatus",
"value": "concept",
"isObject": true
}
},
"handleClick": {
"link": "/components",
"setFilter": {
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/templates/templateParts/header/HeaderTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const HeaderTemplate: React.FC<HeaderTemplateProps> = ({ layoutClassName
process.env.GATSBY_HEADER_SHOW_LOGIN === "true"
? setTopNavItems([...itemsArray, ...secondaryTopNavItemsMobile])
: setTopNavItems(itemsArray);
}, [screenSize, pathname, crumbs, getHeaderContent.isSuccess]);
}, [screenSize, pathname, crumbs, filters]);

return (
<PageHeader
Expand Down

0 comments on commit 673837e

Please sign in to comment.