+
Calendar
+
setFilterFlag(!filterFlag)}
@@ -297,20 +311,22 @@ export default function Schedule() {
Show only events that need more volunteers
-
+
{userIsAdmin ? (
-
- ) : null}
+
+ ) : null}
-
+
`Cleaning Crew: ${event.cleaningCrew.length} / ${event.cleaningCrewReq}\nSidewalkers: ${event.sideWalkers.length} / ${event.sideWalkersReq}\nLesson Assistants: ${event.lessonAssistants.length} / ${event.lessonAssistantsReq}\nHorse Leaders: ${event.horseLeaders.length} / ${event.horseLeadersReq}`}
+ tooltipAccessor={event =>
+ `Cleaning Crew: ${event.cleaningCrew.length} / ${event.cleaningCrewReq}\nSidewalkers: ${event.sideWalkers.length} / ${event.sideWalkersReq}\nLesson Assistants: ${event.lessonAssistants.length} / ${event.lessonAssistantsReq}\nHorse Leaders: ${event.horseLeaders.length} / ${event.horseLeadersReq}`
+ }
startAccessor="start"
endAccessor="end"
onSelectEvent={handleSelectEvent}
- style={{
+ style={{
height: '95%',
width: '95%',
backgroundColor: 'white',
@@ -318,17 +334,17 @@ export default function Schedule() {
padding: 20,
borderRadius: '1.5rem',
}}
+ components={components}
+ defaultView="agenda"
/>
-
+
-
-
)
}
@@ -557,7 +573,7 @@ function CreateEventDialog({ horses, instructors }: CreateEventDialogProps) {
return (