Skip to content

Add reusable loading and error UI components#3

Open
payday-sepia wants to merge 1 commit intomasterfrom
payday-sepia-patch-3
Open

Add reusable loading and error UI components#3
payday-sepia wants to merge 1 commit intomasterfrom
payday-sepia-patch-3

Conversation

@payday-sepia
Copy link
Owner

Description

What was changed

Added simple reusable Loading and ErrorMessage components to standardize how loading states and errors are displayed.

Why it was changed

Multiple components handle loading and error states differently. Shared UI components improve consistency and reduce duplicated JSX.

How to test

  1. Import Loading and ErrorMessage into an existing page.
  2. Render Loading during async operations.
  3. Render ErrorMessage when an error occurs and confirm it displays correctly.

## Description
### What was changed
Added simple reusable `Loading` and `ErrorMessage` components to standardize how loading states and errors are displayed.

### Why it was changed
Multiple components handle loading and error states differently. Shared UI components improve consistency and reduce duplicated JSX.

### How to test
1. Import `Loading` and `ErrorMessage` into an existing page.
2. Render `Loading` during async operations.
3. Render `ErrorMessage` when an error occurs and confirm it displays correctly.
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

Successfully merging this pull request may close these issues.

1 participant