Update EventList.jsx
This commit is contained in:
parent
39f1b2791e
commit
8b339e68b3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue