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

WIP: AWS S3 Bucket Photo Uploads and API Bug Fixing #558

Open
wants to merge 19 commits into
base: master
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
12 changes: 0 additions & 12 deletions frontend/src/components/EmployeeCards/EmployeeCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
const navigate = useNavigate();
const netId = email.split('@')[0];
const fmtPhone = formatPhone(phoneNumber);

const formatAvail = (availability: {

Check warning on line 37 in frontend/src/components/EmployeeCards/EmployeeCards.tsx

View workflow job for this annotation

GitHub Actions / check

'formatAvail' is assigned a value but never used
[key: string]: { startTime: string; endTime: string };
}) => {
if (!availability) {
Expand All @@ -52,24 +51,13 @@
};

const isAdmin = isDriver !== undefined;
const isBoth = isDriver && isDriver == true;

Check warning on line 54 in frontend/src/components/EmployeeCards/EmployeeCards.tsx

View workflow job for this annotation

GitHub Actions / check

Expected '===' and instead saw '=='
const roles = (): string => {
if (isBoth) return 'Admin • Driver';
if (isAdmin) return 'Admin';
return 'Driver';
};

const userInfo = {
id,
firstName,
lastName,
netId,
type,
phone: fmtPhone,
photoLink,
startDate,
};

const handleClick = () => {
const path =
isAdmin || isBoth ? `/admin/admins/${id}` : `/admin/drivers/${id}`;
Expand Down
Loading
Loading