Skip to content

Commit 1d97c51

Browse files
committed
Invite expert: Fix styles
1 parent 9dbe523 commit 1d97c51

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

hwproj.front/src/components/Experts/RegisterModal.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import ApiSingleton from "../../api/ApiSingleton";
77
import {RegisterExpertViewModel} from "@/api";
88
import "../Auth/Styles/Register.css";
99
import Grid from "@material-ui/core/Grid";
10-
import {makeStyles} from '@material-ui/core/styles';
1110
import PersonAddOutlinedIcon from '@material-ui/icons/PersonAddOutlined';
1211
import Avatar from "@material-ui/core/Avatar";
1312
import 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-
4124
const 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

Comments
 (0)