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 { Login } from "@/routes/Login";
|
||||||
import { Piece } from "@/routes/Piece";
|
import { Piece } from "@/routes/Piece";
|
||||||
import { Repertoire } from "@/routes/Repertoire";
|
import { Repertoire } from "@/routes/Repertoire";
|
||||||
@@ -22,7 +22,14 @@ const router = createBrowserRouter([
|
|||||||
Component: Home,
|
Component: Home,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "piece/:pieceId",
|
path: "piece",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
index: true,
|
||||||
|
Component: Pieces,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: ":pieceId",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
index: true,
|
index: true,
|
||||||
@@ -34,6 +41,8 @@ const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "repertoire",
|
path: "repertoire",
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { Loader2, Plus } from "lucide-react";
|
|||||||
import { FormEventHandler, ReactNode, useId, useState } from "react";
|
import { FormEventHandler, ReactNode, useId, useState } from "react";
|
||||||
import { Link, useNavigate } from "react-router-dom";
|
import { Link, useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
export function Home() {
|
export function Pieces() {
|
||||||
|
|
||||||
const [name, setName] = useState("");
|
const [name, setName] = useState("");
|
||||||
const [author, setAuthor] = useState("");
|
const [author, setAuthor] = useState("");
|
||||||
Reference in New Issue
Block a user