-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Component: Switch Chain Modal #865
Comments
@0xTijan can you outline how this would work? |
Hey Bill 👋 This would be a dropdown or modal (not sure yet) like in the 1inch or gnosis safe apps for example. When user selects a chain they want to switch to, Metamask pops up for user to approve that. The component would need to have at least 2 props:
But after looking at a dropdown component this new switch chain component maybe isn't needed at all? 😅 |
It would have been a nice addition but since moralis servers are going to be deprecated soon i don't think adding this to web3 package is worth it sorry 😅 |
Yeah, makes sense 😃 |
yeah i'm pretty close to adding the new web3 section @0xTijan , just some final things to workout about how to use NextJS pages with server side rendering in Storybook and make it useful to export to the end dev. Then this will be very nice. I do not think we need more UI for it, maybe just an array of chains would be passed and we would render the @AbhinavMV Select Component with the correct text and logos, then on change it could return the chain ID |
i marked this blocked for now until i have the new slice ready, but you could actually add it to the |
FYI @0xTijan i have added this to web3 I am using this tag to collect ideas for the next iteration of the web3 section of the kit and i think this is a great idea! 🤩 |
Many dApps require a functionality for user to be able to switch chains. Even though this component wouldn't use Moralis it could still be a nice useful component for the web3uikit.
The text was updated successfully, but these errors were encountered: