Skip to content

Commit

Permalink
Merge pull request #1452 from lpsinger/breadcrumb-remix-link
Browse files Browse the repository at this point in the history
Enable client-side routing for breadcrumbs
  • Loading branch information
dakota002 authored Sep 28, 2023
2 parents 6a40e2a + 848361a commit b00c064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/docs_.schema.$version.$/BreadcrumbNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
import { Link, type LinkProps } from '@remix-run/react'
import {
Breadcrumb,
BreadcrumbBar,
Expand All @@ -31,7 +32,7 @@ export default function BreadcrumbNav({
cumulativePath = `${cumulativePath}/${breadcrumb}`
return (
<Breadcrumb key={cumulativePath}>
<BreadcrumbLink href={cumulativePath}>
<BreadcrumbLink<LinkProps> asCustom={Link} to={cumulativePath}>
{breadcrumb}
</BreadcrumbLink>
</Breadcrumb>
Expand Down

0 comments on commit b00c064

Please sign in to comment.