Add breadcrump on roadmap page

pull/1657/head
Kamran Ahmed 3 years ago
parent 6a6c253241
commit 571bd3ea85
  1. 9
      pages/[roadmap]/[group].tsx

@ -53,8 +53,13 @@ function TextualRoadmap(props: RoadmapProps) {
</BreadcrumbItem>
{groupParts.map((groupPart: string, counter: number) => (
<BreadcrumbItem key={groupPart}>
<BreadcrumbLink color="blue.500" href={`/${roadmap.id}/${groupPart}`}>
<BreadcrumbItem key={groupPart} isCurrentPage={counter === groupParts.length - 1}>
<BreadcrumbLink
color="blue.500"
href={`/${roadmap.id}/${groupParts
.slice(0, counter + 1)
.join(':')}`}
>
{groupPart.split('-').join(' ')}
</BreadcrumbLink>
</BreadcrumbItem>

Loading…
Cancel
Save