Update project name in YourProjectsPage.tsx URL
This commit is contained in:
parent
31c5a78dae
commit
f16dc1722c
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ function UserProjectPage(): JSX.Element {
|
|||
|
||||
// Mock data
|
||||
const projects: Project[] = [
|
||||
{ id: "1", name: "Project 1" },
|
||||
{ id: "1", name: "Project Test App" },
|
||||
{ id: "2", name: "Project 2" },
|
||||
{ id: "3", name: "Project 3" },
|
||||
// Add more mock projects as needed
|
||||
|
@ -44,7 +44,7 @@ function UserProjectPage(): JSX.Element {
|
|||
<div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]">
|
||||
{projects.map((project, index) => (
|
||||
<Link
|
||||
to={`/project/${project.id}`}
|
||||
to={`/project/${project.name}`}
|
||||
onClick={() => {
|
||||
handleProjectClick(project.name);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue