We can only create events 1 at a time. if we had a csv file with 10+ rows, we would save so much time and fill the calendar with lots of events
setting up
game plan
- modify the above createeventspage to take a 10mb max csv file
- identify what columns the csv file should have (title, description, date, etc)
- it should render a table, which is the parsed rows from the csv file
- add a confirm button, and if clicked, it calls the CreateSceEvent function like below for each row
|
import { createSCEvent } from '../../APIFunctions/SCEvents'; |
if that works, then we can try adding an api endpoint in the actual sce events repo to take a csv file and create the events with a single api call
We can only create events 1 at a time. if we had a csv file with 10+ rows, we would save so much time and fill the calendar with lots of events
setting up
game plan
Clark/src/Pages/Events/CreateEventPage.js
Line 5 in f770f0b
if that works, then we can try adding an api endpoint in the actual sce events repo to take a csv file and create the events with a single api call