-
Notifications
You must be signed in to change notification settings - Fork 12
Update empty lists component to CardEmptyState #1932
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
base: master
Are you sure you want to change the base?
Conversation
Deployed to Cloudflare Pages
|
29f9afd to
d8708d8
Compare
d8708d8 to
4cb042d
Compare
| const events = data?.data.events | ||
| if (isFetched && pagination.selectedPage > 1 && !events?.length) { | ||
| throw AppErrors.PageDoesNotExist | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent error if user changes url and goes to a page that doesn't exist:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sapphire account:
transfers: https://pr-1932.oasis-explorer.pages.dev/mainnet/sapphire/address/0x79F952376AaE242CE09e19870a5af18379bAb5B3/token-transfers?page=10

txs empty due to filter: https://pr-1932.oasis-explorer.pages.dev/mainnet/sapphire/address/0x79F952376AaE242CE09e19870a5af18379bAb5B3?tx_method=roflmarket.InstanceCreate





Create a consistent use for empty lists across the site using CardEmptyState component.
Fixes: #1879
Before:


After:

