Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show spinner when needed in squareappIcon
Previously it was rendered too liberally. Now it is rendered only when - Component is in "loading" variant - Component has an animationState (success or failed), which triggers after a loading finishes. We need this because we don't want to hide the spinner as soon as the loading is over We want to wait for the ending animation too so the transition looks smooth. Also refactored the spinner logic out of the main component for clarity
- Loading branch information
Showing
2 changed files
with
16 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters