Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

History attendance clicking #411

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

History attendance clicking #411

wants to merge 4 commits into from

Conversation

patwang123
Copy link
Contributor

Cleaned up request to set attendance, made it possible to change attendance in history page

@pusherbot
Copy link
Collaborator

pusherbot commented Jul 20, 2021

Build Status (apps/411)

Successful Builds

<AttendanceRow
editable={
currentUser.isStaff &&
section.staff.email === currentUser.email
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want this check, put it on the server-side too. But honestly just don't check it at all, just let staff edit whatever we want!

email,
}: Props) {
const [currentStatus, setStatus] = useState(status);
const setAttendance = useSectionAPI("set_attendance");
return (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline before return

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants