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.
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
andtoken
.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.