DA0-DA0 / dao-dao-ui

InterChain DAO tooling UI.
https://daodao.zone
27 stars 20 forks source link

Refactor usages of `useWallet` to use `useProfile` where possible #1744

Open NoahSaso opened 6 months ago

NoahSaso commented 6 months ago

Now that users register accounts on their profile, we don't need to ask the wallet to connect every time we want to fetch the address or public key for a given chain. We can replace a lot of useWallet usages with useProfile to make the UI faster and lessen dependence on the wallet. This is especially relevant when using mobile wallets, since the UI will often randomly open the mobile wallet to connect to a chain in order to retrieve an address.