@@ -7,7 +7,6 @@ import ApiSingleton from "../../api/ApiSingleton";
77import { RegisterExpertViewModel } from "@/api" ;
88import "../Auth/Styles/Register.css" ;
99import Grid from "@material-ui/core/Grid" ;
10- import { makeStyles } from '@material-ui/core/styles' ;
1110import PersonAddOutlinedIcon from '@material-ui/icons/PersonAddOutlined' ;
1211import Avatar from "@material-ui/core/Avatar" ;
1312import Tags from "../Common/Tags" ;
@@ -22,25 +21,7 @@ interface IRegisterExpertState {
2221 errors : string [ ] ;
2322}
2423
25- const useStyles = makeStyles ( ( theme ) => ( {
26- paper : {
27- marginTop : theme . spacing ( 3 ) ,
28- display : 'flex' ,
29- flexDirection : 'column' ,
30- alignItems : 'center' ,
31- } ,
32- avatar : {
33- margin : theme . spacing ( 1 ) ,
34- } ,
35- form : {
36- marginTop : theme . spacing ( 3 ) ,
37- width : '100%'
38- }
39- } ) )
40-
4124const RegisterExpertModal : FC < IRegisterExpertProps > = ( props ) => {
42- const classes = useStyles ( )
43-
4425 const [ registerState , setRegisterState ] = useState < RegisterExpertViewModel > ( {
4526 name : "" ,
4627 surname : "" ,
@@ -110,7 +91,7 @@ const RegisterExpertModal: FC<IRegisterExpertProps> = (props) => {
11091 < DialogTitle id = "form-dialog-title" >
11192 < Grid container >
11293 < Grid item container direction = { "row" } justifyContent = { "center" } >
113- < Avatar className = { classes . avatar } style = { { color : 'white' , backgroundColor : '#00AB00' } } >
94+ < Avatar style = { { color : 'white' , backgroundColor : '#00AB00' } } >
11495 < PersonAddOutlinedIcon />
11596 </ Avatar >
11697 </ Grid >
@@ -121,7 +102,7 @@ const RegisterExpertModal: FC<IRegisterExpertProps> = (props) => {
121102 </ Grid >
122103 </ Grid >
123104 </ DialogTitle >
124- < form onSubmit = { handleSubmit } className = { classes . form } >
105+ < form onSubmit = { handleSubmit } >
125106 < DialogContent >
126107 < Grid item container direction = { "row" } justifyContent = { "center" } >
127108 { commonState . errors . length > 0 && (
0 commit comments