diff --git a/client/src/components/presentational/profile/UserTable.jsx b/client/src/components/presentational/profile/UserTable.jsx index ed18d02de..aa8913653 100644 --- a/client/src/components/presentational/profile/UserTable.jsx +++ b/client/src/components/presentational/profile/UserTable.jsx @@ -1,59 +1,98 @@ import React from 'react'; import ProfileOption from '../profile/ProfileOption'; +import { + Box, + Table, + TableBody, + TableCell, + TableHead, + TableRow, +} from '@mui/material'; + const UserTable = ({ context }) => { - const { user, removeOption } = context; - - return ( -
- - - - - - - - - - - - - - - - {user.slack ? - ( - - - ):("")} - - {user.desiredRoles ? - ( - - - ):("")} - - {user.hackNights ? - ( - - - ):("")} - - {user.availability ? - ( - - - ):("")} - -
Name{user.name}
Email{user.email}
Github{user.github}
Slack{user.slack}
Desired Roles - {user.desiredRoles.map((option, index)=> (removeOption("desiredRoles", option)}/>))} -
My Hack Nights - {user.hackNights.map((option, index)=>(removeOption("hackNights", option)}/>))} -
Availability - {user.availability.map((option, index)=>(removeOption("availability", option)}/>))} -
-
- ) -} - -export default UserTable; \ No newline at end of file + const { user, removeOption } = context; + + return ( + + + + + Name + {user.name} + + + Email + {user.email} + + + Github + {user.github} + + + {user.slack ? ( + + Slack + {user.slack} + + ) : ( + '' + )} + + {user.desiredRoles ? ( + + Desired Roles + + {user.desiredRoles.map((option, index) => ( + removeOption('desiredRoles', option)} + /> + ))} + + + ) : ( + '' + )} + + {user.hackNights ? ( + + My Hack Nights + + {user.hackNights.map((option, index) => ( + removeOption('hackNights', option)} + /> + ))} + + + ) : ( + '' + )} + + {user.availability ? ( + + Availability + + {user.availability.map((option, index) => ( + removeOption('availability', option)} + /> + ))} + + + ) : ( + '' + )} + +
+
+ ); +}; + +export default UserTable;