Skip to content

Commit

Permalink
add highlighting for "/" + i18n.language
Browse files Browse the repository at this point in the history
  • Loading branch information
mludwig committed Mar 13, 2024
1 parent 5b91d4d commit 533119a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/CatalogueHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export default function CatalogueHeader() {

const selectedType = useMemo(() => {
if (
location.pathname === "/" + i18n.language + "/" ||
location.pathname === "/"
location.pathname === "/" ||
location.pathname === "/" + i18n.language ||
location.pathname === "/" + i18n.language + "/"
)
return "component";
if (location.pathname === "/" + i18n.language + "/list-apps")
Expand Down

0 comments on commit 533119a

Please sign in to comment.