Small fixes in all files that fetches user projects, so that they pass username as argument to GetProjects-function
This commit is contained in:
parent
85795f5406
commit
b036ef906c
6 changed files with 28 additions and 28 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue