We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now when you select a token on a chain that is different from the one selected in MetaMask, the button is disabled.
Make the button clickable, so that it opens MetaMask and prompts the user to switch the chain:
Use wagmi:
import { useSwitchChain } from "wagmi"; const { switchChain } = useSwitchChain();
The bulk of the logic should be in the index.tsx of the swap component (and not in the template) to separate logic from presentation.
index.tsx
Make sure the button displays a spinner import { Loader2 } from "lucide-react" when changing the network.
import { Loader2 } from "lucide-react"
The text was updated successfully, but these errors were encountered:
Assigned to @mikelord007
Sorry, something went wrong.
@mikelord007 any updates on the issue?
No branches or pull requests
Right now when you select a token on a chain that is different from the one selected in MetaMask, the button is disabled.
Make the button clickable, so that it opens MetaMask and prompts the user to switch the chain:
Use wagmi:
The bulk of the logic should be in the
index.tsx
of the swap component (and not in the template) to separate logic from presentation.Make sure the button displays a spinner
import { Loader2 } from "lucide-react"
when changing the network.The text was updated successfully, but these errors were encountered: