-
Notifications
You must be signed in to change notification settings - Fork 326
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): change sync error tooltip to be more readable #8140
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
|
b1d44e1
to
36bb5e8
Compare
36bb5e8
to
d24219e
Compare
accounts?: (Account | null)[]; | ||
} = {}): AccountWithSyncState[] { | ||
const syncState = useBridgeSyncState(); | ||
if (!accounts) return []; |
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.
you can add || !account?.length
too
accounts: (AccountLike | null | undefined)[], | ||
): (string | undefined)[] => { | ||
return useSelector((state: State) => | ||
accounts.map(account => |
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 put the content of this map in a function to factorize with the useMaybeAccountName
function above
) : ( | ||
<Box> | ||
<Text mb={1} textAlign="left"> | ||
{"Accounts failing to sync:"} |
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.
Why is this text not in the translations file ?
d24219e
to
f917d45
Compare
β Checklist
npx changeset
was attached.π Description
in purpose to add a more readable UI inside sync tooltips we will display all the accounts that failed to sync (not update to date / not supported ). For this I've added batch hook to find all the account names
Screen.Recording.2024-10-18.at.13.25.08.mov
β Context
π§ Checklist for the PR Reviewers