Skip to content

Add loading and error states to Stats component #1834

Open
@coderabbitai

Description

@coderabbitai

Background

The Stats component in web/src/pages/Courts/CourtDetails/Stats/index.tsx currently does not handle loading and error states when fetching data from multiple sources (court details and coin prices).

Proposed Changes

Add loading and error states to improve user experience:

  • Display a loading spinner while data is being fetched
  • Show an error message if data fetching fails
  • Handle both court details and coin prices loading/error states

References

Additional Context

This improvement will help users understand when data is being loaded or if there are any issues with data fetching.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions