Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work for 10/18 #255

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 57 additions & 51 deletions src/comps/admin/AdminNav.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,57 @@
import RouteTabs from "../ui/RouteTabs";
import PendingActionsIcon from "@mui/icons-material/PendingActions";
import EditIcon from "@mui/icons-material/Edit";
import ReportProblemIcon from "@mui/icons-material/ReportProblem";
import EmailIcon from "@mui/icons-material/Email";
import CampaignIcon from "@mui/icons-material/Campaign";
import MeetingRoomIcon from "@mui/icons-material/MeetingRoom";
import { Box } from "@mui/material";

const AdminNav = () => {
let navLinks = [
{
to: "/admin/approve-pending",
label: "Pending Orgs",
icon: <PendingActionsIcon />,
},
{
to: "/admin/approve-edit",
label: "Approve Edits",
icon: <EditIcon />,
},
{
to: "/admin/strikes",
label: "Strikes",
icon: <ReportProblemIcon />,
},
{
to: "/admin/send-message",
label: "Send Message",
icon: <EmailIcon />,
},
{
to: "/admin/announcements",
label: "Announcements",
icon: <CampaignIcon />,
},
{
to: "/admin/rooms",
label: "Rooms",
icon: <MeetingRoomIcon />,
},
];

return (
<Box sx={{ width: "100%", display: "flex", justifyContent: "center" }}>
<RouteTabs tabs={navLinks} />
</Box>
);
};

export default AdminNav;
import RouteTabs from "../ui/RouteTabs";
import PendingActionsIcon from "@mui/icons-material/PendingActions";
import EditIcon from "@mui/icons-material/Edit";
import ReportProblemIcon from "@mui/icons-material/ReportProblem";
import EmailIcon from "@mui/icons-material/Email";
import CampaignIcon from "@mui/icons-material/Campaign";
import MeetingRoomIcon from "@mui/icons-material/MeetingRoom";
import { Box } from "@mui/material";
import { Send } from "@mui/icons-material";

const AdminNav = () => {
let navLinks = [
{
to: "/admin/approve-pending",
label: "Pending Orgs",
icon: <PendingActionsIcon />,
},
{
to: "/admin/approve-edit",
label: "Approve Edits",
icon: <EditIcon />,
},
{
to: "/admin/strikes",
label: "Strikes",
icon: <ReportProblemIcon />,
},
{
to: "/admin/send-message",
label: "Send Message",
icon: <EmailIcon />,
},
{
to: "/admin/announcements",
label: "Announcements",
icon: <CampaignIcon />,
},
{
to: "/admin/rooms",
label: "Rooms",
icon: <MeetingRoomIcon />,
},
{
to: "/admin/club-admin-emails",
label: "Admin Emails",
icon: <Send />,
},
];

return (
<Box sx={{ width: "100%", display: "flex", justifyContent: "center" }}>
<RouteTabs tabs={navLinks} />
</Box>
);
};

export default AdminNav;
Loading
Loading