-
Notifications
You must be signed in to change notification settings - Fork 638
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
Swaps: fix crashes, logic and UI fixes #5839
Conversation
…t change detection
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.
Haven't ran it yet, just did a mobile run through of the code and some small questions/nitpicks.
|
||
// This causes a heavy re-render in the output token list, so we delay updating the selected output chain until | ||
// the animation is most likely complete. | ||
chainSetTimeoutId.current = setTimeout(() => { |
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.
Smart fix, nice
const nativeValue = `${Number(inputValues.value.inputNativeValue).toLocaleString('en-US', { | ||
currency: 'USD', | ||
style: 'currency', |
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.
This will conflict with Ben's PR afaik
const nativeValue = `${Number(inputValues.value.outputNativeValue).toLocaleString('en-US', { | ||
currency: 'USD', | ||
style: 'currency', |
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.
Same here
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.
Code LGTM!
…bow into brody/lint-on-pre-commit * 'brody/lint-on-pre-commit' of github.com:rainbow-me/rainbow: Math related fixes (#5837) Hide Flashbots outside of mainnet (#5842) fix getProviderForNetwork type (#5843) Fix isSwapping not being reset (#5840) Swaps: fix crashes, logic and UI fixes (#5839) default to fast suggestion if custom is not set (#5841) guard each entry point into swaps to prevent readonly wallets from accessing it (#5835) Swaps: token list and search improvements (#5834) Add analytics (#5805)
Fixes APP-1538
Fixes APP-1552
Fixes APP-1582
Fixes APP-1583
Fixes APP-1591
Fixes RNBW-4755
What changed (plus any additional context for devs)
toLocaleString
changes are temporary and will be superseded by Ben's changes)PIXEL_RATIO
todeviceUtils
setAsset
which adds a bit of duplicate code but prevents complicatingsetAsset
Screen recordings / screenshots
What to test