Skip to content

Commit

Permalink
add higlighting for "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
mludwig committed Mar 13, 2024
1 parent dd83775 commit 4f9baec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/CatalogueHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export default function CatalogueHeader() {
let match = useMatch("/:locale/component-detail/:component_id");

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

0 comments on commit 4f9baec

Please sign in to comment.