Skip to content
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

Merged
merged 2 commits into from
May 16, 2024
Merged

Swap Warning / Price Impact component #5722

merged 2 commits into from
May 16, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented May 14, 2024

Screenshot 2024-05-14 at 10 58 06 AM Screenshot 2024-05-14 at 10 57 56 AM

Copy link
Contributor

@benisgold benisgold left a 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 }));
Copy link
Contributor

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?

Copy link
Contributor Author

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

@walmat walmat merged commit 5a0e882 into develop May 16, 2024
6 checks passed
@walmat walmat deleted the @matthew/swap-warning branch May 16, 2024 18:26
BrodyHughes added a commit that referenced this pull request May 21, 2024
…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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants