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: token icon label #94

Merged
merged 2 commits into from
Nov 21, 2023
Merged

fix: token icon label #94

merged 2 commits into from
Nov 21, 2023

Conversation

vasyl-ivanchuk
Copy link
Collaborator

What ❔

Refactor TokenIconLabel component and its usage.

Why ❔

The problem came from the local environment where we don't have ETH in DB and it's not returned by the tokens endpoint so the custom token icon is shown:
image

since we already have a token icon url in upsteam components - we can just pass it to TokenIconLabel component and simplify the component itself.

image

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.

Copy link

github-actions bot commented Nov 21, 2023

API E2E Test Results

206 tests   206 ✔️  28s ⏱️
  14 suites      0 💤
    1 files        0

Results for commit 0009583.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 21, 2023

Unit Test Results

       3 files     244 suites   8m 15s ⏱️
1 918 tests 1 917 ✔️ 1 💤 0
1 944 runs  1 943 ✔️ 1 💤 0

Results for commit 0009583.

♻️ This comment has been updated with latest results.

Copy link

Visit the preview URL for this PR (updated for commit 0009583):

(expires Tue, 28 Nov 2023 11:44:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

@vasyl-ivanchuk vasyl-ivanchuk merged commit b1012f8 into main Nov 21, 2023
24 checks passed
@vasyl-ivanchuk vasyl-ivanchuk deleted the fix-token-icon-label branch November 21, 2023 12:27
Copy link

🎉 This PR is included in version 2.29.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

pcheremu pushed a commit that referenced this pull request Feb 15, 2024
# What ❔

Refactor TokenIconLabel component and its usage.

## Why ❔

The problem came from the local environment where we don't have ETH in
DB and it's not returned by the tokens endpoint so the custom token icon
is shown:
<img width="477" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/932bc268-6af3-4f3e-881f-43575068f680">

since we already have a token icon url in upsteam components - we can
just pass it to TokenIconLabel component and simplify the component
itself.

<img width="474" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/1601b1c2-2f90-468a-a8c9-d725274436cf">


## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants