Skip to content

Commit

Permalink
added a comment for the management breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
shivindera committed Jun 8, 2022
1 parent 309aaef commit 3b1cb6d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const ManagementApp = ({ dependencies, history, theme$ }: ManagementAppPr
...(item.href ? reactRouterNavigate(scopedHistory, item.href) : {}),
});

// Clicking the Management breadcrumb to navigate back to the "root" only
// makes sense if there's a management app open. So when one isn't open
// this breadcrumb shouldn't be a clickable link.
const managementBreadcrumb = crumbs.length
? MANAGEMENT_BREADCRUMB
: MANAGEMENT_BREADCRUMB_NO_HREF;
Expand Down

0 comments on commit 3b1cb6d

Please sign in to comment.