-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
fix(suite-native): show spinner for pending transactions in lists #16105
Conversation
🚀 Expo preview is ready!
|
9b75a9c
to
dc02ffb
Compare
@@ -155,7 +150,9 @@ export const TransactionListItemContainer = ({ | |||
contractAddress={contractAddress} | |||
transactionType={transactionType} | |||
isAnimated={isTransactionPending} | |||
iconColor={iconColor} | |||
iconColor="iconDefault" | |||
spinnerColor="backgroundAlertYellowBold" |
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.
what about setting these values of spinnerColor
and spinnerWidth
as default in the TransactionIcon
component? So if you pass isAnimated=true
then there will be animation displayed by default? It would make sense to me. Up to you.
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.
I thought about it too but decided not to do that. However, you motivated me to be even more radical. 😅
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.
makes sense to me 👍✅
6d363ec
to
858553f
Compare
@@ -125,7 +125,6 @@ export const TransactionNotification = ({ | |||
transactionType={transactionType} | |||
symbol={notification.symbol} | |||
isAnimated={isIconAnimated} | |||
iconColor={isIconAnimated ? 'iconAlertYellow' : 'iconSubdued'} |
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.
@shenkys explicitly asked for the icon to use the default colour no matter what. I missed this in the initial commit.
858553f
to
2ef927b
Compare
Screenshots: