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

✨(lld): add empty message and dummy drawer for ordis #7881

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

LucasWerey
Copy link
Contributor

@LucasWerey LucasWerey commented Sep 24, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ordis

πŸ“ Description

Add empty state in table for inscriptions and rare sats
Add error message to error row
Add dummy drawer that will be replaced by the good one in next pr

Screen.Recording.2024-09-24.at.09.58.41.mov

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@LucasWerey LucasWerey requested a review from a team as a code owner September 24, 2024 07:58
Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 9:40am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 9:40am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 9:40am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 9:40am
web-tools ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 9:40am

@live-github-bot live-github-bot bot added desktop Has changes in LLD translations Translation files have been touched labels Sep 24, 2024
if (items.length > 3) setDisplayShowMore(true);
setDisplayedObjects(items.slice(0, 3));
}, [items]);
if (displayedObjects.length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's to avoid to trigger it at each re render. Sometimes (and when a drawer just opened) displayedObjects comes back to his initial state with only 3 object in it. So I trigger it only at the first render

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed to not do it with a use Effect to make easier to read

@LucasWerey LucasWerey merged commit c55d0b3 into develop Sep 25, 2024
40 of 42 checks passed
@LucasWerey LucasWerey deleted the feat/ordis-a branch September 25, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants