Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loading and error states to Stats component #1834

Open
coderabbitai bot opened this issue Jan 14, 2025 · 1 comment
Open

Add loading and error states to Stats component #1834

coderabbitai bot opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 2025

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.

@jaybuidl
Copy link
Member

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant