Simplified + tiny design changes
This commit is contained in:
parent
43d83ca7b3
commit
d9af77a8f7
4 changed files with 7 additions and 20 deletions
|
@ -13,14 +13,7 @@ function AdminManageProjects(): JSX.Element {
|
||||||
setProjectsProp: setProjects,
|
setProjectsProp: setProjects,
|
||||||
username: localStorage.getItem("username") ?? "",
|
username: localStorage.getItem("username") ?? "",
|
||||||
});
|
});
|
||||||
const content = (
|
const content = <ProjectListAdmin projects={projects} />;
|
||||||
<>
|
|
||||||
<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 = (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -12,14 +12,7 @@ function AdminManageUsers(): JSX.Element {
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const content = (
|
const content = <UserListAdmin users={users} />;
|
||||||
<>
|
|
||||||
<h1 className="font-bold text-[30px] mb-[20px]">Manage Users</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]">
|
|
||||||
<UserListAdmin users={users} />
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
|
|
||||||
const buttons = (
|
const buttons = (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -5,14 +5,14 @@ function AdminMenuPage(): JSX.Element {
|
||||||
const content = (
|
const content = (
|
||||||
<>
|
<>
|
||||||
<h1 className="font-bold text-[30px] mb-[20px]">Administrator Menu</h1>
|
<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]">
|
<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-auto space-y-[10vh] p-[30px]">
|
||||||
<Link to="/adminManageUser">
|
<Link to="/adminManageUser">
|
||||||
<h1 className="font-bold underline text-[30px] cursor-pointer">
|
<h1 className="font-bold hover:underline text-[30px] cursor-pointer hover:font-extrabold">
|
||||||
Manage Users
|
Manage Users
|
||||||
</h1>
|
</h1>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/adminManageProject">
|
<Link to="/adminManageProject">
|
||||||
<h1 className="font-bold underline text-[30px] cursor-pointer">
|
<h1 className="font-bold hover:underline text-[30px] cursor-pointer hover:font-extrabold">
|
||||||
Manage Projects
|
Manage Projects
|
||||||
</h1>
|
</h1>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import { useLocation } from "react-router-dom";
|
import { useLocation } from "react-router-dom";
|
||||||
import AddUserToProject from "../../Components/AddUserToProject";
|
import AddUserToProject from "../../Components/AddUserToProject";
|
||||||
import BasicWindow from "../../Components/BasicWindow";
|
import BasicWindow from "../../Components/BasicWindow";
|
||||||
|
import BackButton from "../../Components/BackButton";
|
||||||
|
|
||||||
function AdminProjectAddMember(): JSX.Element {
|
function AdminProjectAddMember(): JSX.Element {
|
||||||
const projectName = useLocation().search.slice(1);
|
const projectName = useLocation().search.slice(1);
|
||||||
const content = <AddUserToProject projectName={projectName} />;
|
const content = <AddUserToProject projectName={projectName} />;
|
||||||
const buttons = <></>;
|
const buttons = <BackButton />;
|
||||||
return <BasicWindow content={content} buttons={buttons} />;
|
return <BasicWindow content={content} buttons={buttons} />;
|
||||||
}
|
}
|
||||||
export default AdminProjectAddMember;
|
export default AdminProjectAddMember;
|
||||||
|
|
Loading…
Reference in a new issue