Add breadcrump on roadmap page

pull/936/head
Kamran Ahmed 3 years ago
parent 7bc3b4a0f3
commit 4f1d4feff6
  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