chore: bump version to 2.18.1 and update AppBreadcrumbs component (#386)

- Incremented application version from 2.18.0 to 2.18.1 in package.json.
- Refactored AppBreadcrumbs component to use Next.js Link for improved navigation.
This commit is contained in:
Giancarlo Buomprisco
2025-10-14 14:18:19 +09:00
committed by GitHub
parent 2e20d3e76f
commit 5539d38cc2
17 changed files with 365 additions and 177 deletions

View File

@@ -33,7 +33,7 @@
"class-variance-authority": "^0.7.1",
"date-fns": "^4.1.0",
"eslint": "^9.35.0",
"next": "15.5.4",
"next": "15.5.5",
"next-themes": "0.4.6",
"prettier": "^3.6.2",
"react-day-picker": "^9.11.0",

View File

@@ -2,6 +2,7 @@
import { Fragment } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import {
@@ -59,13 +60,17 @@ export function AppBreadcrumbs(props: {
condition={index < visiblePaths.length - 1}
fallback={label}
>
<BreadcrumbLink
href={
'/' +
splitPath.slice(0, splitPath.indexOf(path) + 1).join('/')
}
>
{label}
<BreadcrumbLink asChild>
<Link
href={
'/' +
splitPath
.slice(0, splitPath.indexOf(path) + 1)
.join('/')
}
>
{label}
</Link>
</BreadcrumbLink>
</If>
</BreadcrumbItem>