From edf503776aeb02bb985e17148fc213d7164cd77c Mon Sep 17 00:00:00 2001 From: Peter KW Date: Sat, 16 Mar 2024 02:23:52 +0100 Subject: [PATCH] Changed design a little so that it uses the projectlist component, added some fake projects --- frontend/src/Pages/YourProjectsPage.tsx | 38 +++++++++++-------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/frontend/src/Pages/YourProjectsPage.tsx b/frontend/src/Pages/YourProjectsPage.tsx index 7ec147d..2b3fd18 100644 --- a/frontend/src/Pages/YourProjectsPage.tsx +++ b/frontend/src/Pages/YourProjectsPage.tsx @@ -1,31 +1,25 @@ -import { Link } from "react-router-dom"; import BasicWindow from "../Components/BasicWindow"; +import { ProjectListUser } from "../Components/ProjectListUser"; +import { Project } from "../Types/Project"; function YourProjectsPage(): JSX.Element { + //TODO: Change so that it reads projects from database + const projects: Project[] = []; + for (let i = 1; i <= 20; i++) { + projects.push({ + id: i, + name: "Example Project " + i, + description: "good", + created: "now", + owner: "me", + }); + } + const content = ( <>

Your Projects

-
- -

- ProjectNameExample -

- - -

- ProjectNameExample2 -

- - -

- ProjectNameExample3 -

- - -

- ProjectNameExample4 -

- +
+
);