feat: Web 2996 add fiat on ramp buy flow to swap modal on the interface (#6240)
* init * testing if it works * wip * tooltip still not working correctly * modal still not triggered after initial buy click * remove invalid import * region check fixed * add disabled buy button treatment * simplify and fix toggle twice bug * no more state mgmt bugs finally * rename vars for clarity and add todos * add feature flag, remove toast * keep wallet drawer open upon repeated buy clicks * remove from feature flag modal for now * unused vars * first round respond to tina comments * respond to tina padding comments, fix padding in response to cal feedback * last round tina comments * add tooltip delay requested by fred and cal * middle of revisions, fiat buy flow readability wip * hook logic refactor done + added basic unit test * rename enum and add todo for unit tests * mouseover tooltip disable properly * fix mouseover tooltip not working, ensure dot working as expected, rename buyFiatClicked to buyFiatFlowCompleted * change developer doc comment * respond comments * update snapshot test * comments * small changes + unit tests * dedup * remove enzyme * Remove unecessary line * simplify * more cleanup * add missing await * more comments * more comment responses * more comment responses * delay show fixes and respond to comments * fix logic for show * remove tooltip delay, unit test changes * Update src/components/Popover/index.tsx Co-authored-by:Zach Pomerantz <zzmp@uniswap.org> * remove delay on tooltip * missed one * Update src/components/swap/SwapBuyFiatButton.test.tsx Co-authored-by:
Tina <59578595+tinaszheng@users.noreply.github.com> * comments * . * lint error --------- Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org> Co-authored-by:
Tina <59578595+tinaszheng@users.noreply.github.com>
Showing
... | @@ -70,6 +70,7 @@ | ... | @@ -70,6 +70,7 @@ |
"@lingui/cli": "^3.9.0", | "@lingui/cli": "^3.9.0", | ||
"@testing-library/jest-dom": "^5.16.4", | "@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.1", | "@testing-library/react": "^13.1", | ||
"@testing-library/user-event": "^14.4.3", | |||
"@typechain/ethers-v5": "^7.0.0", | "@typechain/ethers-v5": "^7.0.0", | ||
"@types/array.prototype.flat": "^1.2.1", | "@types/array.prototype.flat": "^1.2.1", | ||
"@types/array.prototype.flatmap": "^1.2.2", | "@types/array.prototype.flatmap": "^1.2.2", | ||
... | ... |
Please register or sign in to comment