This PR adds the loading skeleton to the wallet screen. The loading logics handles the asynchronous mutation of wallet credentials and allows to show a loading skeleton for credentials that may be added to the wallet.
List of changes proposed in this pull request
Added state, sagas and actions to handle wallet loading state mutations
Added withWalletCardBaseComponent HOC to WalletCardSkeleton component
Added WalletCardsCategoryContainerSkeleton component, which displays a skeleton for a wallet category.
Added loading logics to WalletCardsContainer
Refactored WalletHomeScreen to improve code readibility and to handle loading logics
Added tests
How to test
With the io-dev-api-server, enable the New wallet section FF from the profile screen. Navigate to the new wallet section and check that the loading state works as expected:
First time you visit, you should see a single card skeleton which disappears as soon new cards are added to the wollet
Following visits should display previous cards placeholder skeletons
Short description
This PR adds the loading skeleton to the wallet screen. The loading logics handles the asynchronous mutation of wallet credentials and allows to show a loading skeleton for credentials that may be added to the wallet.
List of changes proposed in this pull request
withWalletCardBaseComponent
HOC toWalletCardSkeleton
componentWalletCardsCategoryContainerSkeleton
component, which displays a skeleton for a wallet category.WalletCardsContainer
WalletHomeScreen
to improve code readibility and to handle loading logicsHow to test
With the
io-dev-api-server
, enable the New wallet section FF from the profile screen. Navigate to the new wallet section and check that the loading state works as expected:Previews