-
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
feat: Connect components in React Native [part 2] #3438
feat: Connect components in React Native [part 2] #3438
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @joaquim-verges and the rest of your teammates on Graphite |
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #3438 will improve performances by 10.39%Comparing Summary
Benchmarks breakdown
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## joaquim/rn-ui-connect #3438 +/- ##
=========================================================
+ Coverage 62.27% 62.52% +0.24%
=========================================================
Files 900 898 -2
Lines 69113 68903 -210
Branches 3675 3687 +12
=========================================================
+ Hits 43040 43080 +40
+ Misses 25382 25134 -248
+ Partials 691 689 -2
*This pull request uses carry forward flags. Click here to find out more.
|
44dc614
to
0b39485
Compare
size-limit report 📦
|
5eb4405
to
5a7989a
Compare
5a7989a
to
2d3636c
Compare
8c1e181
to
dc70116
Compare
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
dc70116
to
37aae17
Compare
196e258
to
20fd0b0
Compare
37aae17
to
c6ba194
Compare
c6ba194
to
e96a1e2
Compare
e96a1e2
to
cd436b3
Compare
useEffect(() => { | ||
if (copySuccess) { | ||
setTimeout(() => { | ||
setCopySuccess(false); | ||
}, 2500); | ||
} | ||
}, [copySuccess]); |
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.
have to clean up this timeout if it was set in the cleanup function
<TouchableOpacity | ||
style={styles.addressContainer} | ||
onPress={() => { | ||
// @ts-ignore - missing native types |
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.
prefer @ts-expect-error
// @ts-ignore - missing native types | |
// @ts-expect-error - missing native types |
if (ensAvatar) { | ||
return ensAvatar; | ||
} |
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.
just keep this entirely outside of the useQuery, it doesn't need to be in here
"wallet-image-or-ens", | ||
wallet.id, | ||
wallet.getAccount()?.address, | ||
ensAvatar, |
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.
remove
{balanceQuery.data | ||
? Number(balanceQuery.data.displayValue).toFixed(3) | ||
: "---"}{" "} | ||
{balanceQuery.data?.symbol}{" "} |
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 the ending space? {" "}
> | ||
{balanceQuery.data | ||
? Number(balanceQuery.data.displayValue).toFixed(3) | ||
: "---"}{" "} |
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.
is the ---
the "loading" state?
const tokens = chain ? supportedTokens[chain.id] || [] : []; | ||
|
||
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.
empty fragment?
20fd0b0
to
ce03f72
Compare
Connected button and modal implementation in RN
PR-Codex overview
The focus of this PR is to refactor and optimize the codebase by moving and updating imports, modifying function parameters, and improving file organization.
Detailed summary
wallets
property inuseAutoConnect.ts
TokenInfo
import in various filessocialIcons
useSendToken
in web and nativedefaultTokens
import paths