[x] 1) added validation on the Monero address length
[x] 2) added spacing to the Input component that will preserve room for the error, so the layout doesn't jump up & down.
(2) - Because not all inputs have to handle errors and have this margin-bottom, the Input component has a new optional prop: withError = true. If set to false, Input is rendered with no extra spacing.
Description
(2) - Because not all inputs have to handle errors and have this
margin-bottom
, theInput
component has a new optional prop:withError = true
. If set to false, Input is rendered with no extra spacing.Motivation and Context
235
How Has This Been Tested?
New address in settings:
Docker inspect:
Spacing for the error in the Input component:
https://user-images.githubusercontent.com/11715931/174777324-37a3ce8d-c051-4eb3-b4d6-2fee2e521931.mov
https://user-images.githubusercontent.com/11715931/174777557-2414ea1d-3336-46e6-b8b7-5e9f5a732993.mov