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

CP-9698: Portfolio assets screen #2256

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

CP-9698: Portfolio assets screen #2256

wants to merge 23 commits into from

Conversation

ruijialin-avalabs
Copy link
Contributor

@ruijialin-avalabs ruijialin-avalabs commented Feb 10, 2025

Description

Ticket: CP-9704

  • add assets tab
  • add empty state
  • add error state
  • pass correct formattedPrice and percent to BalanceHeader component

Screenshots/Videos

Screen.Recording.2025-02-10.at.12.11.01.PM.mov
  • empty state
Screenshot 2025-02-10 at 3 03 35 PM
  • error state
Screen.Recording.2025-02-10.at.3.00.52.PM.mov

Checklist

Please check all that apply (if applicable)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have added/updated necessary unit tests
  • I have updated the documentation

n: Network
): React.JSX.Element | undefined => {
if (t.localId === AVAX_X_ID) {
return isDark ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

decided to still go with using local svg to render x/p network logo to meet the dark theme design requirement.

balance => balance.dataAccurate === true
)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is used to show error state if all balances is inaccurate.

@@ -104,16 +104,14 @@ export const Button = forwardRef<
alignItems: 'center',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this Button will be updated after Junghwan merged his PR.

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.

1 participant