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> </BreadcrumbItem>
{groupParts.map((groupPart: string, counter: number) => ( {groupParts.map((groupPart: string, counter: number) => (
<BreadcrumbItem key={groupPart}> <BreadcrumbItem key={groupPart} isCurrentPage={counter === groupParts.length - 1}>
<BreadcrumbLink color="blue.500" href={`/${roadmap.id}/${groupPart}`}> <BreadcrumbLink
color="blue.500"
href={`/${roadmap.id}/${groupParts
.slice(0, counter + 1)
.join(':')}`}
>
{groupPart.split('-').join(' ')} {groupPart.split('-').join(' ')}
</BreadcrumbLink> </BreadcrumbLink>
</BreadcrumbItem> </BreadcrumbItem>

Loading…
Cancel
Save