Skip to content
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

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

yanascz
Copy link
Contributor

@yanascz yanascz commented Dec 26, 2024

Screenshots:

image

@yanascz yanascz added the mobile Suite Lite issues and PRs label Dec 26, 2024
@yanascz yanascz self-assigned this Dec 26, 2024
@yanascz yanascz requested a review from a team as a code owner December 26, 2024 20:29
Copy link

github-actions bot commented Dec 26, 2024

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 21
  • More info

Learn more about 𝝠 Expo Github Action

@yanascz yanascz force-pushed the fix/native/pending-transaction-spinner branch from 9b75a9c to dc02ffb Compare December 27, 2024 08:50
@@ -155,7 +150,9 @@ export const TransactionListItemContainer = ({
contractAddress={contractAddress}
transactionType={transactionType}
isAnimated={isTransactionPending}
iconColor={iconColor}
iconColor="iconDefault"
spinnerColor="backgroundAlertYellowBold"
Copy link
Contributor

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.

Copy link
Contributor Author

@yanascz yanascz Jan 4, 2025

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. 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me 👍✅

@yanascz yanascz force-pushed the fix/native/pending-transaction-spinner branch from 6d363ec to 858553f Compare January 4, 2025 11:23
@@ -125,7 +125,6 @@ export const TransactionNotification = ({
transactionType={transactionType}
symbol={notification.symbol}
isAnimated={isIconAnimated}
iconColor={isIconAnimated ? 'iconAlertYellow' : 'iconSubdued'}
Copy link
Contributor Author

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.

@yanascz yanascz force-pushed the fix/native/pending-transaction-spinner branch from 858553f to 2ef927b Compare January 6, 2025 09:47
@yanascz yanascz merged commit 3b75602 into develop Jan 6, 2025
16 checks passed
@yanascz yanascz deleted the fix/native/pending-transaction-spinner branch January 6, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs
Projects
Status: 🏃‍♀️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants