Adds two Web3Buttons components: AddOrSwitchNetworkButton and AddERC20TokenButton. They extend the TokenDropdown component and are enabled/disabled by setting the flags allowAddOrSwitchNetwork and allowAddToken respectively.
Steps:
Play with the example (see the video)
Type of change:
[x] New feature
[ ] Bug fix
[x] Breaking change
[ ] Enhancement
[x] Refactoring
[ ] Chore
How Has This Been Tested?
[x] Manual testing
[ ] Automated tests
[ ] Other (explain)
Remember to check that:
Your code follows the style guidelines of this project
You have performed a self-review of your code
You have commented your code in hard-to-understand areas
You have made corresponding changes to the documentation
Closes #40
Description:
Adds two Web3Buttons components:
AddOrSwitchNetworkButton
andAddERC20TokenButton
. They extend theTokenDropdown
component and are enabled/disabled by setting the flagsallowAddOrSwitchNetwork
andallowAddToken
respectively.Steps:
Play with the example (see the video)
Type of change:
How Has This Been Tested?
Remember to check that:
Screenshots
https://github.com/user-attachments/assets/dbfeaa58-0598-46a8-a637-daea34c6ecf8