Now uses projectListAdmin to show projects

This commit is contained in:
Peter KW 2024-03-20 11:53:27 +01:00
parent e271794b57
commit 6317c7674c

View file

@ -2,9 +2,20 @@ import { Link } from "react-router-dom";
import BackButton from "../../Components/BackButton";
import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
import { ProjectListAdmin } from "../../Components/ProjectListAdmin";
import { NewProject } from "../../Types/goTypes";
function AdminManageProjects(): JSX.Element {
const content = <></>;
//TODO: Use fetch to get all projects
const projects: NewProject[] = [{ name: "Project", description: "New" }];
const content = (
<>
<h1 className="font-bold text-[30px] mb-[20px]">Manage Projects</h1>
<div className="border-4 border-black bg-white flex flex-col items-center h-[65vh] w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]">
<ProjectListAdmin projects={projects} />
</div>
</>
);
const buttons = (
<>