Skip to content
Open
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
31 changes: 31 additions & 0 deletions apps/applicant-tracking/src/components/ApplicantListItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ApplicantResponse } from '@hack4impact-utk/internal-models';
import { Chip, TableCell, TableRow } from '@mui/material';
import LaunchIcon from '@mui/icons-material/Launch';
import Button from '@mui/material/Button';
interface ApplicantListItemProps {
applicant: ApplicantResponse;
}
//Each row should display the applicant name (first and last), status, NetID and application
export default function ApplicantListItem(props: ApplicantListItemProps) {
return (
<TableRow>
<TableCell align={'left'}>
{props.applicant.firstName} {props.applicant.lastName}
</TableCell>
<TableCell align={'left'}>
<Chip label={props.applicant.status} />
</TableCell>
<TableCell align={'left'}>{props.applicant.netid}</TableCell>
<TableCell align={'left'}>
<Button
variant="outlined"
color="inherit"
size="small"
endIcon={<LaunchIcon />}
>
View Application
</Button>
</TableCell>
</TableRow>
);
}