Rename Home to Pieces

This commit is contained in:
2024-12-28 21:07:34 +01:00
parent 60bbcefa9d
commit 2241b101aa
2 changed files with 15 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { Home } from "@/routes/Home";
import { Home, Pieces } from "@/routes/Pieces";
import { Login } from "@/routes/Login";
import { Piece } from "@/routes/Piece";
import { Repertoire } from "@/routes/Repertoire";
@@ -22,15 +22,24 @@ const router = createBrowserRouter([
Component: Home,
},
{
path: "piece/:pieceId",
path: "piece",
children: [
{
index: true,
Component: Piece,
Component: Pieces,
},
{
path: "attachment/:attachmentId",
Component: Attachment,
path: ":pieceId",
children: [
{
index: true,
Component: Piece,
},
{
path: "attachment/:attachmentId",
Component: Attachment,
},
],
},
],
},