Skip to content

Commit

Permalink
use next/link for breadcrumbs for folders and headers (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangohjw authored Dec 24, 2024
1 parent 75150e9 commit 886444a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import NextLink from "next/link"
import {
Box,
BreadcrumbItem,
Expand Down Expand Up @@ -51,7 +52,7 @@ const CollectionResourceListPage: NextPageWithLayout = () => {
<Stack w="100%" p="1.75rem" gap="1rem" height="$100vh" overflow="auto">
<Breadcrumb size="sm">
<BreadcrumbItem>
<BreadcrumbLink href={`/sites/${siteId}`}>
<BreadcrumbLink href={`/sites/${siteId}`} as={NextLink}>
<Text textStyle="caption-2" color="interaction.links.default">
Home
</Text>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import NextLink from "next/link"
import {
Box,
BreadcrumbItem,
Expand Down Expand Up @@ -122,7 +123,7 @@ const FolderPage: NextPageWithLayout = () => {
{breadcrumbs.map(({ href, label }, index) => {
return (
<BreadcrumbItem key={index}>
<BreadcrumbLink href={href}>
<BreadcrumbLink href={href} as={NextLink}>
<Text
textStyle="caption-2"
color="interaction.links.default"
Expand Down

0 comments on commit 886444a

Please sign in to comment.