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

Add USD banner to accounts page #5966

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Add USD banner to accounts page #5966

merged 3 commits into from
Dec 10, 2024

Conversation

dskloetd
Copy link
Contributor

Motivation

#5934 added the USD value banner on the tokens page.
We want the same banner on the ICP accounts page.

Changes

  1. Move function to add up USD balances to utils.
  2. Add banner to NnsAccounts component.

Tests

  1. Unit tests added.
  2. Tested manually at https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/accounts/?u=qsgjb-riaaa-aaaaa-aaaga-cai

Todos

  • Add entry to changelog (if necessary).
    not yet

@dskloetd dskloetd marked this pull request as ready for review December 10, 2024 10:21
@dskloetd dskloetd requested a review from a team as a code owner December 10, 2024 10:21
@dskloetd dskloetd enabled auto-merge December 10, 2024 10:22
Copy link
Contributor

@mstrasinskis mstrasinskis left a comment

Choose a reason for hiding this comment

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

Thanks!

@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 10, 2024
# Motivation

#5934 added the USD value banner
on the tokens page.
We want the same banner on the ICP accounts page.

# Changes

1. Move function to add up USD balances to utils.
2. Add banner to `NnsAccounts` component.

# Tests

1. Unit tests added.
2. Tested manually at
https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/accounts/?u=qsgjb-riaaa-aaaaa-aaaga-cai

# Todos

- [ ] Add entry to changelog (if necessary).
not yet
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
@dskloetd dskloetd removed this pull request from the merge queue due to a manual request Dec 10, 2024
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
@dskloetd dskloetd removed this pull request from the merge queue due to a manual request Dec 10, 2024
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
@dskloetd dskloetd enabled auto-merge December 10, 2024 20:46
@dskloetd dskloetd added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 85da07d Dec 10, 2024
30 checks passed
@dskloetd dskloetd deleted the kloet/accounts-usd branch December 10, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants