Open memoyil opened 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 30, 2024 6:47pm |
Latest commit: 77b132a8325f09cfc54834f07220583063b33caf
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
To reproduce:
Find a lp position on different chain
Dismiss the wrong network modal
Collect/Add/Remove button available and make transaction when click
(Can happen on other pages too)
PR-Codex overview
This PR primarily focuses on refactoring the code related to network handling in a web application. It simplifies the state management and modifies the way the
WrongNetworkModal
component is used.Detailed summary
EXCHANGE_PAGE_PATHS
to use an array format.useSetAtom
forhideWrongNetworkModalAtom
.CommitButton
component's click handling logic.onDismiss
prop fromWrongNetworkModal
.NetworkModal
to eliminate unnecessary state management.NetworkModal
.