Update EventList.jsx

This commit is contained in:
chark1es 2024-04-02 22:31:52 -07:00
parent 39f1b2791e
commit 8b339e68b3

View file

@ -1,9 +1,9 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import Event from "./Event"; // Adjust the import path as necessary import Event from "./Event";
const EventList = ({ CALENDAR_API_KEY }) => { const EventList = ({ CALENDAR_API_KEY }) => {
const [events, setEvents] = useState([]); // Use an array to store multiple events const [events, setEvents] = useState([]);
const [loading, setLoading] = useState(true); const [loading, setLoading] = useState(true);
const [error, setError] = useState(null); const [error, setError] = useState(null);