-
Notifications
You must be signed in to change notification settings - Fork 0
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
Switch network #21
Switch network #21
Conversation
…eature/switch-network
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…eature/switch-network
@@ -31,17 +33,20 @@ export const ConnectButton: React.FC = () => { | |||
return ( | |||
<> | |||
{/* just to see which wallet was connected to*/} | |||
<Avatar | |||
{/* <Avatar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that you have commented on where it will be represented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I leave some nitpicks
const chainId = event.target.value as ChainId; | ||
onChange(chainId); | ||
}; | ||
const chain = CHAINS_ALLOWED.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why no use getChain
on chains.ts?
src/config/chain.ts
Outdated
return { | ||
...chain, | ||
logo: { | ||
src: `${CHAINS_IMG_PATH}${chain.id}.png`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use default custom image if it does not exist
Switch Network