Small fixes in all files that fetches user projects, so that they pass username as argument to GetProjects-function

This commit is contained in:
Peter KW 2024-03-28 21:31:30 +01:00
parent 85795f5406
commit b036ef906c
6 changed files with 28 additions and 28 deletions

View file

@ -9,7 +9,10 @@ import { useState } from "react";
function AdminManageProjects(): JSX.Element {
const [projects, setProjects] = useState<Project[]>([]);
GetProjects({ setProjectsProp: setProjects });
GetProjects({
setProjectsProp: setProjects,
username: localStorage.getItem("username") ?? "",
});
const content = (
<>
<h1 className="font-bold text-[30px] mb-[20px]">Manage Projects</h1>