source: frontend/src/components/modals/vehicle-modal.jsx@ badbc79

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 
1import {Dialog, DialogContent, DialogTitle, IconButton} from "@mui/material";
2import CloseIcon from "@mui/icons-material/Close";
3import DriverVehicleForm from "../forms/driver-vehicle-form";
4
5
6const CreateUpdateVehicleModal = ({vehicle, ...props}) => {
7
8 return (
9 <Dialog
10 {...props}
11 disablebackdropclick="true"
12 fullWidth={true}
13 maxWidth={"lg"}
14 aria-labelledby="choose-role-title"
15 >
16 <DialogTitle variant="h4" disabletypography="true" id={"choose-role-title"}
17 className={"text-center font-weight-bolder"}>
18 {vehicle ? "Update" : "Add"} Vehicle
19 <IconButton className={"float-end"} aria-label="close" onClick={() => props.onClose()}>
20 <CloseIcon/>
21 </IconButton>
22 </DialogTitle>
23 <DialogContent className={"mb-3"}>
24 <DriverVehicleForm vehicle={vehicle} onClose={props.onClose}/>
25 </DialogContent>
26 </Dialog>
27 )
28}
29
30export default CreateUpdateVehicleModal;
Note: See TracBrowser for help on using the repository browser.