Add Availability component

This commit is contained in:
2020-06-09 16:07:07 +02:00
parent fe1dafae3c
commit 036bbcb396
8 changed files with 277 additions and 55 deletions

View File

@@ -9,18 +9,18 @@ export default function DaySelector({ eventsList, handleSelect, handleClear }) {
return (
<FullCalendar
plugins={[dayGridPlugin, interaction]}
initialView='dayGridMonth'
// showNonCurrentDates={false}
selectable={true}
// unselectAuto={false}
longPressDelay={150}
select={(info) => handleSelect(info)}
defaultAllDay={true}
events={eventsList}
// view props
initialView='dayGridMonth'
defaultAllDay={true}
customButtons={{
resetSelection: { text: 'clear selection', click: handleClear },
}}
headerToolbar={{ right: 'resetSelection today prev,next' }}
// interaction props
selectable={true}
longPressDelay={150}
select={(info) => handleSelect(info)}
/>
);
}