Skip to content

Commit 93874ee

Browse files
authored
Update Events.jsx
1 parent 4487f0c commit 93874ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/Events.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ function Events() {
66
const { data: events, error, loading } = useCallApi('dummyEvents.json');
77

88
if (loading) {
9-
return <p>Loading...</p>;
9+
return (
10+
<div className="spinner-border text-primary" role="status">
11+
<span className="visually-hidden">Loading...</span>
12+
</div>
13+
);
1014
}
1115

1216
if (error) {

0 commit comments

Comments
 (0)