Refactor ExchangePage into Swap and Send pages (#774)
* Part 1, separate swap and send, move duplicate code into separate files
* Move some more constants out of the swap/send
* Support defaults from URL parameters
* Implement query string parsing via a redux action
* Finish merging the changes
* Fix the slippage warnings
* Clean up some other files
* More refactoring
* Move the price bar out of the component
* Move advanced details and some computations into utilities
* Make same improvements to send
* Approval hook
* Swap page functional with swap callback hook
* Swap/send page functional with swap callback hook
* Fix lint
* Move styleds.ts
* Fix integration test
* Fix error state in swap and move some things around
* Move send callback out of send page
* Make send behave more like current behavior
* Differentiate swap w/o send on send page from swap w/o send on swap page
* Remove userAdvanced which was always false
* Remove the price bar which is not used in the new UI
* Delete the file
* Fix null in the send dialog and move another component out of send
* Move the swap modal header out to another file
* Include change after merge
* Add recipient to swap message
* Keep input token selected if user has no balance and clicks send with swap
* Move the modal footer out of send component
* Remove the hard coded estimated time
* Fix the label/action for swap/sends
* Share the swap modal footer between swap and send
* Fix integration test
* remove margin from popper to suppress warnings
fix missing ENS name recipient link
default deadline to 15 minutes
* ensure useApproveCallback returns accurate data
* clean up callbacks
* extra space
* Re-apply ignored changes from v2 branch ExchangePage file
Co-authored-by:
Noah Zinsmeister <noahwz@gmail.com>
Showing
... | ... | @@ -37,6 +37,7 @@ |
"jazzicon": "^1.5.0", | ||
"polished": "^3.3.2", | ||
"qrcode.react": "^0.9.3", | ||
"qs": "^6.9.4", | ||
"react": "^16.13.1", | ||
"react-device-detect": "^1.6.2", | ||
"react-dom": "^16.13.1", | ||
... | ... | @@ -60,6 +61,7 @@ |
"@ethersproject/wallet": "^5.0.0-beta.141", | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^13.13.5", | ||
"@types/qs": "^6.9.2", | ||
"@types/react": "^16.9.34", | ||
"@types/react-dom": "^16.9.7", | ||
"@types/react-redux": "^7.1.8", | ||
... | ... |
src/hooks/useSendCallback.ts
0 → 100644
src/hooks/useSwapCallback.ts
0 → 100644
src/state/swap/actions.ts
0 → 100644
src/state/swap/hooks.ts
0 → 100644
src/utils/prices.ts
0 → 100644
Please register or sign in to comment