Closed pablofullana closed 5 years ago
We have this exact type of error message in our current version of 0x instant. Perhaps we can reuse existing components.
While we're at it, I updated the design to use orange as the background color, and included an error icon
realizing I was inspired by (stole from) coinbase pro. Imagining this error will show after the button is clicked. The button will stay orange for 1-2 seconds, and the "you don't have enough ETH" message below will stay for 3-4 seconds.
See coinbase as an example: https://drive.google.com/file/d/1fzDp-laQGdKfBGfZw_HgyhvkstO27-9t/view?usp=sharing
Also hoping the error message can give us more context about what went wrong. I think some error messages are around not having sufficient amounts? If the user doesn't have enough ETH or wETH, it should show an error message like this: