Now uses GetProjects
This commit is contained in:
parent
cea2b6c03c
commit
33b269e0c9
1 changed files with 5 additions and 3 deletions
|
@ -3,11 +3,13 @@ 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 { ProjectListAdmin } from "../../Components/ProjectListAdmin";
|
||||||
import { NewProject } from "../../Types/goTypes";
|
import { Project } from "../../Types/goTypes";
|
||||||
|
import GetProjects from "../../Components/GetProjects";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
function AdminManageProjects(): JSX.Element {
|
function AdminManageProjects(): JSX.Element {
|
||||||
//TODO: Use fetch to get all projects
|
const [projects, setProjects] = useState<Project[]>([]);
|
||||||
const projects: NewProject[] = [{ name: "Project", description: "New" }];
|
GetProjects({ setProjectsProp: setProjects });
|
||||||
const content = (
|
const content = (
|
||||||
<>
|
<>
|
||||||
<h1 className="font-bold text-[30px] mb-[20px]">Manage Projects</h1>
|
<h1 className="font-bold text-[30px] mb-[20px]">Manage Projects</h1>
|
||||||
|
|
Loading…
Reference in a new issue