@@ -51,7 +51,7 @@ const SignUp = () => {
51
51
className = 'settingsForm'
52
52
component = 'form'
53
53
autoComplete = 'off'
54
- onSubmit = { ( e ) => handleNewUser ( e ) }
54
+ onSubmit = { ( e : any ) => handleNewUser ( e , e . target . roleID ) }
55
55
sx = { { color :'blue' } }
56
56
>
57
57
@@ -83,7 +83,7 @@ const SignUp = () => {
83
83
id = "signupPassword"
84
84
type = { values . showPassword ? 'text' : 'password' }
85
85
onChange = { ( e ) => {
86
- checkPasswordLength ( e ) ;
86
+ checkPasswordLength ( ) ;
87
87
setValues ( { ...values , password :e . target . value } )
88
88
} }
89
89
endAdornment = {
@@ -104,25 +104,6 @@ const SignUp = () => {
104
104
{ values . password && < PasswordStrengthBar style = { { maxWidth :'190px' , color :'red' , marginLeft :10 } } password = { values . password } /> }
105
105
< span id = 'password-length-alert' style = { { fontSize :10 , textAlign :'left' , maxWidth :190 , display :'inline-block' , marginLeft :10 } } > </ span >
106
106
107
- { /* <TextField
108
- id='signupPassword'
109
- label='Password'
110
- variant='outlined'
111
- type='password'
112
- required
113
- inputProps={{ minLength: 6, maxLength: 16 }}
114
-
115
- onChange={(e) => {
116
- setPassword(e.target.value);
117
- checkPasswordLength(e);}}
118
- sx={{
119
- m: 1
120
- }}
121
- /> */ }
122
-
123
- { /* {password && <PasswordStrengthBar style={{maxWidth:'190px', color:'red',marginLeft:10 }} password= {password}/> }
124
- <span id='password-length-alert' style={{fontSize:10, textAlign:'left', maxWidth:190, display:'inline-block', marginLeft:10}}></span> */ }
125
-
126
107
< br />
127
108
< TextField
128
109
id = 'signupPasswordConfirmation'
@@ -132,7 +113,7 @@ const SignUp = () => {
132
113
required
133
114
onChange = { ( e ) => {
134
115
setValues ( { ...values , passwordConfirmation :e . target . value } )
135
- confirmPassword ( e )
116
+ confirmPassword ( )
136
117
} }
137
118
sx = { {
138
119
m : 1
@@ -150,7 +131,8 @@ const SignUp = () => {
150
131
inputProps = { { maxLength : 12 } }
151
132
152
133
onChange = { ( ) => {
153
- checkPhone ( document . getElementById ( 'signupPhone' ) ?. value ) ;
134
+ const inputElement = ( document . getElementById ( 'signupPhone' ) as HTMLInputElement ) . value ;
135
+ checkPhone ( inputElement )
154
136
} }
155
137
sx = { {
156
138
m : 1
0 commit comments