fixed user form select
This commit is contained in:
parent
d4c70cf8ae
commit
695d9d63c8
@ -6,6 +6,9 @@ import {
|
|||||||
Checkbox,
|
Checkbox,
|
||||||
CircularProgress,
|
CircularProgress,
|
||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
|
InputLabel,
|
||||||
|
MenuItem,
|
||||||
|
Select,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
@ -133,18 +136,17 @@ const UserForm = () => {
|
|||||||
: "Index does not exist"
|
: "Index does not exist"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<InputLabel id="role-label">Role</InputLabel>
|
||||||
<TextField
|
<Select
|
||||||
select
|
labelId="role-label"
|
||||||
label="Role"
|
|
||||||
value={role}
|
value={role}
|
||||||
onChange={(e) => setRole(e.target.value)}
|
onChange={(e) => setRole(e.target.value)}
|
||||||
fullWidth
|
fullWidth
|
||||||
sx={{ mb: 3 }}
|
sx={{ mb: 3 }}
|
||||||
>
|
>
|
||||||
<option value="common">Common</option>
|
<MenuItem value="common">Common</MenuItem>
|
||||||
<option value="prof">Professor</option>
|
<MenuItem value="prof">Professor</MenuItem>
|
||||||
</TextField>
|
</Select>
|
||||||
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user