-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDeleteFlightschedule.jsx
More file actions
executable file
·36 lines (34 loc) · 1.27 KB
/
DeleteFlightschedule.jsx
File metadata and controls
executable file
·36 lines (34 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import DialogActions from '@material-ui/core/DialogActions';
const DeleteFlightschedule = (props) =>{
return (
<div>
<Dialog
open={props.open}
onclose={ (event) => props.handleDeleteFlightOpenClick(event) }
aria-labelledby='delete-a-flight-schedule'>
<DialogTitle id="delete-a-flightschedule-title">Are you sure you want to delete this?</DialogTitle>
<DialogContent>
<DialogContentText>
This flight schedule will be permanently deleted.
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={ (event) => props.deleteFlightschedule(event) } color="primary">
Yes
</Button>
<Button onClick={ (event) => props.handleDeleteFlightClose(event) } color="primary">
No
</Button>
</DialogActions>
</Dialog>
</div>
)
}
export default DeleteFlightschedule;