This repository was archived by the owner on Jul 12, 2024. It is now read-only.
Add skeleton loading to table summary component #6961
Labels
focus: components
Issues for woocommerce components
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: enhancement
The issue is a request for an enhancement.
type: good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
Presently the table summary component does not have a check on the contents of the
data
object being passed to it. We ran into an issue with the transactions list component in WCPay client where thesummary.value
is being passed asundefined
and it was rendered as-is. One of the ways to solve that was to pass a default value, more details here: Automattic/woocommerce-payments#1639.However, to maintain consistency with the table component we'd like a similar skeleton loader for the
TableSummary
as well. Which will be rendered while the data is still being loaded.It should look something like this
The component will take
isLoading
as prop which will append a class that will enable skeleton loading animation.The text was updated successfully, but these errors were encountered: