-
Notifications
You must be signed in to change notification settings - Fork 635
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
Swap Warning / Price Impact component #5722
Conversation
walmat
commented
May 14, 2024
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.
lgtm but just curious about getWarning
const updateWarning = useCallback( | ||
(values: SwapWarning) => { | ||
'worklet'; | ||
swapWarning.modify(prev => ({ ...prev, ...values })); |
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.
does prev need to be used here at all?
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.
yeah this pattern is kinda weird but recommended by reanimated :l
…x-qr-code-sheet * 'develop' of github.com:rainbow-me/rainbow: (56 commits) review panel fixes (#5747) Account for NaN values on sliderPosition (#5741) add myself to CO for PR approvals (#5743) bump version to v1.9.24 (#5742) Asset Prices (#5724) rm references to old redux swaps const (#5740) Swap Warning / Price Impact component (#5722) add animated coin icons and text fallbacks (#5733) adds ability to select a different output chain id (#5727) fix (#5738) fix positions calling without address (#5729) disable button (#5725) Browser: homepage empty state, search logic fixes (#5737) Add privacy manifest (#5736) swaps and bridge checks on control panel (#5735) Browser: fix control panel crash (#5734) Browser: control panel fixes (#5730) f skylar (#5732) fix account switching (#5726) Browser: release fixes (#5721) ...