@@ -13,9 +13,7 @@ import FormControl from '@mui/material/FormControl';
13
13
import Visibility from '@mui/icons-material/Visibility' ;
14
14
import VisibilityOff from '@mui/icons-material/VisibilityOff' ;
15
15
import PasswordStrengthBar from 'react-password-strength-bar' ;
16
- import RadioGroup from "@mui/material/RadioGroup" ;
17
- import Radio from "@mui/material/Radio" ;
18
- import FormControlLabel from '@mui/material/FormControlLabel' ;
16
+
19
17
20
18
// Helper Functions
21
19
import {
@@ -25,13 +23,6 @@ import {
25
23
checkPhone ,
26
24
} from "./helper/newUserHelper" ;
27
25
28
- // this will store the value from the user role
29
- let valueRole = '3' ;
30
- //setting value of the RadioGroup MUI Component to the one selected by the user
31
- const handleSelect = ( event : React . ChangeEvent < HTMLInputElement > ) => {
32
- valueRole = ( event . target as HTMLInputElement ) . value ;
33
- }
34
-
35
26
const SignUp = ( ) => {
36
27
const navigate = useNavigate ( ) ;
37
28
const [ values , setValues ] = useState ( {
@@ -49,6 +40,7 @@ const SignUp = () => {
49
40
showPassword : ! values . showPassword ,
50
41
} ) ;
51
42
} ;
43
+
52
44
return (
53
45
< div className = 'renderContainers' >
54
46
< div className = 'header' >
@@ -155,8 +147,10 @@ const SignUp = () => {
155
147
label = 'Phone'
156
148
variant = 'outlined'
157
149
required
150
+ inputProps = { { maxLength : 12 } }
151
+
158
152
onChange = { ( ) => {
159
- checkPhone ( document . getElementById ( 'signupPhone' ) . value ) ;
153
+ checkPhone ( document . getElementById ( 'signupPhone' ) ? .value ) ;
160
154
} }
161
155
sx = { {
162
156
m : 1
@@ -174,7 +168,8 @@ const SignUp = () => {
174
168
m : 1
175
169
} }
176
170
>
177
- Back</ Button >
171
+ Back
172
+ </ Button >
178
173
< Button
179
174
variant = 'contained'
180
175
size = 'medium'
0 commit comments