Connect CreateEvent modal to Calendar
Closed this issue · 0 comments
hnadrian commented
We want the CreateEvent modal to actually interact with the calendar now! Here's the workflow:
- Click on button in calendar page (main page, see figma).
- Admin fills out the event details.
- Click submit
- Event added to database
- Event rendered immediately on calendar
Notes:
- Use ChakraUI for the modal functionality, make sure it opens & closes as expected (should close on submit)
- You should just have to update the event (not FullCalendar event) array in the Calendar component, that component should automatically be converting the Events in that array and adding them to the Calendar for you. You'll have to confirm this is happening as expected though.