Closed ap211unitech closed 3 months ago
Name | Link |
---|---|
Latest commit | e677a5040865b5927f139bd9cbd5274d54a42c18 |
Latest deploy log | https://app.netlify.com/sites/stupendous-valkyrie-505e4a/deploys/66570b34a2c8a30008181e88 |
The changes in the connect.tsx
file involve refactoring the wallet connection logic to improve handling of wallet loading and success states. Specifically, the walletLoading
and walletSuccess
variables are removed, and the logic for detecting browser accounts and selecting accounts for existing users is refined. Additionally, the loading and success states for extension accounts are now managed using mainProxiesLoading
and mainProxiesSuccess
.
File | Change Summary |
---|---|
apps/hestia/src/components/ui/ConnectWalletInteraction/connect.tsx |
Removed walletLoading and walletSuccess variables; adjusted logic for browser account presence and account selection; modified loading and success states for extension accounts to use mainProxiesLoading and mainProxiesSuccess . |
sequenceDiagram
participant User
participant Browser
participant ConnectWallet
participant ExtensionAccounts
User->>ConnectWallet: Initiate Wallet Connection
ConnectWallet->>Browser: Check for Browser Account
alt Browser Account Exists
Browser-->>ConnectWallet: Browser Account Found
ConnectWallet->>ExtensionAccounts: Update with mainProxiesLoading and mainProxiesSuccess
else No Browser Account
Browser-->>ConnectWallet: No Account Found
ConnectWallet->>User: Prompt to Select Account
end
ExtensionAccounts-->>ConnectWallet: Loading and Success States Updated
ConnectWallet-->>User: Wallet Connection Status
In the code, a change so bright, Wallets connect with ease and might. Loading states now clear and fine, Success shines with proxy's sign. Users trade with joy anew, Thanks to the code, so smart and true. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
This PR improves the selection of funding wallet.
https://github.com/Polkadex-Substrate/Polkadex-Orderbook-Frontend/assets/65214523/57530b04-04d4-4e73-9355-5a5929daf086
Checklist