Removed the "Switch / add network + add token" demo.
Configured TokenDropdown so it uses a very basic TokenSelect component, the extra features are not needed here.
Configured TokenInput so it uses a complete version of TokenSelect, because this is a use case where all the features could be needed. This is where the "add token" feature can be found now.
Removed the "switch network" feature from token select. It's not needed here and having a dropdown whose items do 2 different things is confusing.
Added a new SwitchNetwork component and its demo. It should show the current network by default, but only if the current network is Ethereum, Arbitrum One, Optimism, or Polygon. If not, it'll ask the user to select a network from one of those options.
Moved all the components from the Web3Buttons to sharedComponents root.
Steps:
Check that everything I said above is true.
Type of change:
[x] New feature
[ ] Bug fix
[ ] Breaking change
[ ] Enhancement
[ ] Refactoring
[ ] Chore
How Has This Been Tested?
[ ] 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 #182
Description:
TokenDropdown
so it uses a very basicTokenSelect
component, the extra features are not needed here.TokenInput
so it uses a complete version ofTokenSelect
, because this is a use case where all the features could be needed. This is where the "add token" feature can be found now.SwitchNetwork
component and its demo. It should show the current network by default, but only if the current network is Ethereum, Arbitrum One, Optimism, or Polygon. If not, it'll ask the user to select a network from one of those options.Web3Buttons
tosharedComponents
root.Steps:
Check that everything I said above is true.
Type of change:
How Has This Been Tested?
Remember to check that:
Screenshots