Rename Home to Pieces
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user