BootNodeDev / dAppBooster

A modern blockchain boilerplate built to quickly get you started with your next project.
https://dappbooster.dev
MIT License
5 stars 1 forks source link

add singleToken feature to TokenInput component. #227

Closed nicosampler closed 3 months ago

nicosampler commented 3 months ago

We need a variant of TokenInput where is possible to "fix" a specific token and prevent the user from choosing others

We can add two new props to the existing component singleToken and token.

If a token is provided, the select is automatically initialized with this token. if singleToken is provided, token is mandatory. Also, we need to modify the select styles to not confuse the user that he has the change to change the selected token.