@@ -60,37 +60,29 @@ export default ({ setValidUnlockWalletPassword }) => {
60
60
onChange = { event => setPassword ( event . target . value ) }
61
61
onBlur = { ( ) => checkValidUnlockWalletPassword ( password ) }
62
62
/>
63
- < Form . Label className = "text-danger" hidden = { isValidPassword } >
64
- < em className = "text-danger" >
65
- The password must have at least 8 chars.
66
- </ em >
67
- </ Form . Label >
63
+ < Form . Control . Feedback type = "invalid" >
64
+ The password must have at least 8 chars.
65
+ </ Form . Control . Feedback >
68
66
< Form . Control
69
67
type = "password"
70
68
name = "confirmPassword"
71
69
id = "confirmPassword"
72
70
placeholder = "Confirm password"
73
71
value = { confirmPassword }
72
+ isInvalid = { ! arePasswordAndConfirmationEqual }
74
73
onChange = { event => setConfirmPassword ( event . target . value ) }
75
74
onBlur = { ( ) =>
76
75
checkValidUnlockWalletConfirmation ( password , confirmPassword )
77
76
}
78
77
className = "mt-3"
79
78
/>
80
79
< Form . Text >
81
- < em className = "text-danger" >
82
- This key allows you to unlock your wallet every time you start it
83
- and to keep your account data in a more secure way.
84
- </ em >
80
+ This key allows you to unlock your wallet every time you start it and
81
+ to keep your account data in a more secure way.
85
82
</ Form . Text >
86
- < Form . Label
87
- className = "text-danger"
88
- hidden = { arePasswordAndConfirmationEqual }
89
- >
90
- < em className = "text-danger" >
91
- password and confirmation must be the same.
92
- </ em >
93
- </ Form . Label >
83
+ < Form . Control . Feedback type = "invalid" >
84
+ password and confirmation must be the same.
85
+ </ Form . Control . Feedback >
94
86
</ Form . Group >
95
87
</ Form . Group >
96
88
) ;
0 commit comments