Now uses projectListAdmin to show projects
This commit is contained in:
parent
e271794b57
commit
6317c7674c
1 changed files with 12 additions and 1 deletions
|
@ -2,9 +2,20 @@ import { Link } from "react-router-dom";
|
||||||
import BackButton from "../../Components/BackButton";
|
import BackButton from "../../Components/BackButton";
|
||||||
import BasicWindow from "../../Components/BasicWindow";
|
import BasicWindow from "../../Components/BasicWindow";
|
||||||
import Button from "../../Components/Button";
|
import Button from "../../Components/Button";
|
||||||
|
import { ProjectListAdmin } from "../../Components/ProjectListAdmin";
|
||||||
|
import { NewProject } from "../../Types/goTypes";
|
||||||
|
|
||||||
function AdminManageProjects(): JSX.Element {
|
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 = (
|
const buttons = (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue