-
Notifications
You must be signed in to change notification settings - Fork 364
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
π (llm) empty accounts/assets screen #9215
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 4 Skipped Deployments
|
213d603
to
64bacd4
Compare
4145d3a
to
439597a
Compare
439597a
to
b1bcb9f
Compare
isSyncEnabled={isSyncEnabled} | ||
specificAccounts={specificAccounts} | ||
/> | ||
{!hasNoAccount ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid doing negative conditions when possible ? I find it more readable to put it the other way : hasNoAccount ? <EmptyList /> : <List />
Wdyt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done β
b1bcb9f
to
f960d9c
Compare
|
β Checklist
npx changeset
was attached.π Description
When we use a deeplink to open assets and accounts list we can be in an empty screen if we don't have any account. To avoid that I've added an emptyList component that we could use for all our emptyList.
The idea is to have different empty list components depending on the context => addAccount for assets and accounts screen, maybe receive empty list for other screens. This way we can ensure homogeneity using the same base component
deeplinks used :
ledgerlive://accounts?canAddAccount=true&showHeader=true&isSyncEnabled=true
ledgerlive://assets?showHeader=true
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-02-13.at.15.19.05.mp4
β Context
π§ Checklist for the PR Reviewers