refactor(breadcrumbs): use handler & match pattern

This commit is contained in:
Nicolas Meienberger
2025-11-13 22:28:53 +01:00
parent 6d3d3c38f9
commit 6e6becec3b
14 changed files with 89 additions and 98 deletions

View File

@@ -7,6 +7,14 @@ import { SnapshotFileBrowser } from "~/client/modules/backups/components/snapsho
import { getSnapshotDetails } from "~/client/api-client";
import type { Route } from "./+types/snapshot-details";
export const handle = {
breadcrumb: (match: Route.MetaArgs) => [
{ label: "Repositories", href: "/repositories" },
{ label: match.params.name, href: `/repositories/${match.params.name}` },
{ label: match.params.snapshotId },
],
};
export function meta({ params }: Route.MetaArgs) {
return [
{ title: `Snapshot ${params.snapshotId}` },