|
Last change
on this file since badbc79 was badbc79, checked in by Luka Cheshlarov <luka.cheshlarov@…>, 20 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | import {Dialog, DialogContent, DialogTitle, Grid, IconButton, Typography} from "@mui/material";
|
|---|
| 2 | import RoleCard from "../cards/role-card";
|
|---|
| 3 | import CloseIcon from "@mui/icons-material/Close";
|
|---|
| 4 | import {UserRole} from "../../services/user-service";
|
|---|
| 5 | import UserForm from "../forms/user-form";
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 | const EditUserModal = ({user, ...props}) => {
|
|---|
| 9 |
|
|---|
| 10 | return (
|
|---|
| 11 | <Dialog
|
|---|
| 12 | {...props}
|
|---|
| 13 | disablebackdropclick="true"
|
|---|
| 14 | fullWidth={true}
|
|---|
| 15 | maxWidth={"lg"}
|
|---|
| 16 | aria-labelledby="choose-role-title"
|
|---|
| 17 | >
|
|---|
| 18 | <DialogTitle variant="h4" disabletypography="true" id={"choose-role-title"}
|
|---|
| 19 | className={"text-center font-weight-bolder"}>
|
|---|
| 20 | Edit user
|
|---|
| 21 | <IconButton className={"float-end"} aria-label="close" onClick={() => props.onClose()}>
|
|---|
| 22 | <CloseIcon/>
|
|---|
| 23 | </IconButton>
|
|---|
| 24 | </DialogTitle>
|
|---|
| 25 | <DialogContent className={"mb-3"}>
|
|---|
| 26 | <UserForm editUser={user} onClose={props.onClose}/>
|
|---|
| 27 | </DialogContent>
|
|---|
| 28 | </Dialog>
|
|---|
| 29 | )
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | export default EditUserModal; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.