Skip to content

Commit 9dbe523

Browse files
committed
Fix form
1 parent d301e76 commit 9dbe523

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ const RegisterExpertModal: FC<IRegisterExpertProps> = (props) => {
121121
</Grid>
122122
</Grid>
123123
</DialogTitle>
124-
<DialogContent>
125-
<Grid item container direction={"row"} justifyContent={"center"}>
126-
{commonState.errors.length > 0 && (
127-
<p style={{color: "red", marginBottom: "0"}}>{commonState.errors}</p>
128-
)}
129-
</Grid>
130-
<form onSubmit={handleSubmit} className={classes.form}>
124+
<form onSubmit={handleSubmit} className={classes.form}>
125+
<DialogContent>
126+
<Grid item container direction={"row"} justifyContent={"center"}>
127+
{commonState.errors.length > 0 && (
128+
<p style={{color: "red", marginBottom: "0"}}>{commonState.errors}</p>
129+
)}
130+
</Grid>
131131
<Grid container spacing={2}>
132132
<Grid item xs={12} sm={6}>
133133
<TextField
@@ -233,24 +233,24 @@ const RegisterExpertModal: FC<IRegisterExpertProps> = (props) => {
233233
/>
234234
</Grid>
235235
</Grid>
236-
</form>
237-
</DialogContent>
238-
<DialogActions>
239-
<Button
240-
variant="contained"
241-
color="primary"
242-
type="submit"
243-
>
244-
Зарегистрировать
245-
</Button>
246-
<Button
247-
onClick={() => handleClose(false)}
248-
color="primary"
249-
variant="text"
250-
>
251-
Закрыть
252-
</Button>
253-
</DialogActions>
236+
</DialogContent>
237+
<DialogActions>
238+
<Button
239+
variant="contained"
240+
color="primary"
241+
type="submit"
242+
>
243+
Зарегистрировать
244+
</Button>
245+
<Button
246+
onClick={() => handleClose(false)}
247+
color="primary"
248+
variant="text"
249+
>
250+
Закрыть
251+
</Button>
252+
</DialogActions>
253+
</form>
254254
</Dialog>
255255
</div>
256256
)

0 commit comments

Comments
 (0)