Skip to content

Commit

Permalink
fix: page location
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-elena committed Nov 27, 2023
1 parent b57129b commit 6c5ccc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/PageLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function PageLocation(props) {
<Breadcrumb className="m-1">
<Breadcrumb.Item href="#/">Home</Breadcrumb.Item>
{pathname.map((path, idx) => (
<Breadcrumb.Item href={"#/" + pathname.slice(0, idx + 1).join("/").toLowerCase()} key={idx} active={(props.agent && path.toLowerCase() === props.agent.name) || idx === pathname.length - 1}>{path}</Breadcrumb.Item>
<Breadcrumb.Item href={"#/" + pathname.slice(0, idx + 1).join("/").toLowerCase()} key={idx} active={(!props.agent || path.toLowerCase() === props.agent.name) || idx === pathname.length - 1}>{path}</Breadcrumb.Item>
))}
</Breadcrumb>
);
Expand Down

0 comments on commit 6c5ccc2

Please sign in to comment.