Merge branch 'gruppPP' into gruppDM
This commit is contained in:
		
						commit
						3c8b7f9da2
					
				
					 10 changed files with 152 additions and 70 deletions
				
			
		|  | @ -1,25 +1,13 @@ | |||
| import AddProject from "../../Components/AddProject"; | ||||
| import BackButton from "../../Components/BackButton"; | ||||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function AdminAddProject(): JSX.Element { | ||||
|   const content = <></>; | ||||
|   const content = <AddProject />; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Finish" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|         type="button" | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|         type="button" | ||||
|       /> | ||||
|       <BackButton /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| import { Link } from "react-router-dom"; | ||||
| import BackButton from "../../Components/BackButton"; | ||||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
|  | @ -6,20 +8,16 @@ function AdminManageProjects(): JSX.Element { | |||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Add Project" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|         type="button" | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|         type="button" | ||||
|       /> | ||||
|       <Link to="/addProject"> | ||||
|         <Button | ||||
|           text="Add Project" | ||||
|           onClick={(): void => { | ||||
|             return; | ||||
|           }} | ||||
|           type="button" | ||||
|         /> | ||||
|       </Link> | ||||
|       <BackButton /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|  |  | |||
|  | @ -2,14 +2,14 @@ import BasicWindow from "../../Components/BasicWindow"; | |||
| import Button from "../../Components/Button"; | ||||
| import BackButton from "../../Components/BackButton"; | ||||
| import { UserListAdmin } from "../../Components/UserListAdmin"; | ||||
| import { User } from "../../Types/Users"; | ||||
| import { PublicUser } from "../../Types/goTypes"; | ||||
| import { useNavigate } from "react-router-dom"; | ||||
| 
 | ||||
| function AdminManageUsers(): JSX.Element { | ||||
|   //TODO: Change so that it reads users from database
 | ||||
|   const users: User[] = []; | ||||
|   const users: PublicUser[] = []; | ||||
|   for (let i = 1; i <= 20; i++) { | ||||
|     users.push({ id: i, userName: "Example User " + i }); | ||||
|     users.push({ userId: "id" + i, username: "Example User " + i }); | ||||
|   } | ||||
| 
 | ||||
|   const navigate = useNavigate(); | ||||
|  | @ -28,7 +28,7 @@ function AdminManageUsers(): JSX.Element { | |||
|       <Button | ||||
|         text="Add User" | ||||
|         onClick={(): void => { | ||||
|           navigate("/admin-add-user"); | ||||
|           navigate("/adminAddUser"); | ||||
|         }} | ||||
|         type="button" | ||||
|       /> | ||||
|  |  | |||
|  | @ -6,12 +6,12 @@ function AdminMenuPage(): JSX.Element { | |||
|     <> | ||||
|       <h1 className="font-bold text-[30px] mb-[20px]">Administrator Menu</h1> | ||||
|       <div className="border-4 border-black bg-white flex flex-col items-center justify-center min-h-[65vh] h-fit w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]"> | ||||
|         <Link to="/admin-manage-users"> | ||||
|         <Link to="/adminManageUser"> | ||||
|           <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|             Manage Users | ||||
|           </h1> | ||||
|         </Link> | ||||
|         <Link to="/admin-manage-projects"> | ||||
|         <Link to="/adminManageProject"> | ||||
|           <h1 className="font-bold underline text-[30px] cursor-pointer"> | ||||
|             Manage Projects | ||||
|           </h1> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Davenludd
						Davenludd