-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: TAT-1697 update toast component to support animated loading spinner #19715
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
feat: TAT-1697 update toast component to support animated loading spinner #19715
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
e69f459 to
82cc9f4
Compare
| import { OrderDirection } from '../types'; | ||
| import { formatDurationForDisplay } from '../utils/time'; | ||
| import { formatPerpsFiat } from '../utils/formatUtils'; | ||
| import { Spinner } from '@metamask/design-system-react-native/dist/components/temp-components/Spinner/index.cjs'; |
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.
Bug: Spinner Import Relies on Fragile Design System Path
The Spinner component is imported from a fragile path: @metamask/design-system-react-native/dist/components/temp-components/Spinner/index.cjs. This relies on internal build artifacts (dist/), temporary components (temp-components/), and a .cjs extension, which may break with future design system updates.
The duplication is intentional since we want separate maintainable toast configs. |
|


Description
Changes:
startAccessoryprop to Toast componentinProgressPerps toast variantsChangelog
CHANGELOG entry: added optional startAccessory prop to Toast component
CHANGELOG entry: added animated spinner for inProgress Perps toast variants
Related issues
Fixes: TAT-1682: Reconsider icon for pending orders
Screenshots/Recordings
Before
After
perps_animated_in_progress_toasts_demo.mov
Pre-merge author checklist
Pre-merge reviewer checklist