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,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Loader2, Plus } from "lucide-react";
|
||||
import { FormEventHandler, ReactNode, useId, useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
export function Home() {
|
||||
export function Pieces() {
|
||||
|
||||
const [name, setName] = useState("");
|
||||
const [author, setAuthor] = useState("");
|
||||
Reference in New Issue
Block a user