diff --git a/staff-frontend/pages/users.jsx b/staff-frontend/pages/users.jsx index 0595ed6..3a1546a 100644 --- a/staff-frontend/pages/users.jsx +++ b/staff-frontend/pages/users.jsx @@ -8,6 +8,49 @@ import { Button, Card, Layout, Modal, Row, Col, Divider, Tooltip, Menu } from "a import { Email, EmailTemplates } from "../../global-includes/email-address"; const { Content, Sider } = Layout; +function UserModalContent({registration}) { + + const dietaryRestrictions = registration.dietaryRestrictions.map( + r => r == "Other" ? + `Other (${registration.optionalExtraRestriction || "not specified"})` : + r + ).join(", ") || "This user has no dietary restrictions."; + + return <> + Personal + + Age: {registration.age} + School: {registration.school} + Phone: {registration.phone} + Class Standing: {registration.schoolStatus} + Gender: {registration.gender} + Major: {registration.major} + + Website: + + {registration.link} + + + Attended KHE: {registration.attendedKhe ? "Yes" : "No"} + Pronouns: {registration.pronouns} + Ethnicity: {registration.ethnicity} + Sexuality: {registration.sexuality} + Shirt Size: {registration.shirtSize} + State: {registration.state} + Country: {registration.country} + + Dietary Restrictions + + {dietaryRestrictions} + + MLH + + {registration.name} has {registration.mlhConduct ? "accepted" : "not accepted"} the MLH Code of Conduct. + {registration.name} has {registration.mlhShare ? "accepted" : "not accepted"} the MLH Share. + + ; +} + export default function UsersManager() { const [users, setUsers] = useState([]); @@ -128,14 +171,14 @@ export default function UsersManager() { const checkedIn = user.checkedIn; const archived = user.archived; const actions = [ - ]; if (user.submittedApplication) { actions.push(); } - if (user.applicationApproved) { + if (user.applicationApproved && !archived) { actions.push(