Skip to content

Commit

Permalink
Update Events.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
devsdenepal authored Oct 8, 2024
1 parent 4487f0c commit 93874ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ function Events() {
const { data: events, error, loading } = useCallApi('dummyEvents.json');

if (loading) {
return <p>Loading...</p>;
return (
<div className="spinner-border text-primary" role="status">
<span className="visually-hidden">Loading...</span>
</div>
);
}

if (error) {
Expand Down

0 comments on commit 93874ee

Please sign in to comment.