aboutsummaryrefslogtreecommitdiff
path: root/modern/src/RemoveDialog.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-27 00:11:05 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-27 00:11:05 -0700
commit79c36b9a84623fb99db0ab71cc9a31391f06489e (patch)
tree75bc69a49065e035941ab12185f691688786b09b /modern/src/RemoveDialog.js
parent94e7e64ec481cd004546f02869c1c0dd2904a406 (diff)
downloadtrackermap-web-79c36b9a84623fb99db0ab71cc9a31391f06489e.tar.gz
trackermap-web-79c36b9a84623fb99db0ab71cc9a31391f06489e.tar.bz2
trackermap-web-79c36b9a84623fb99db0ab71cc9a31391f06489e.zip
Partially implement device menu
Diffstat (limited to 'modern/src/RemoveDialog.js')
-rw-r--r--modern/src/RemoveDialog.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/modern/src/RemoveDialog.js b/modern/src/RemoveDialog.js
new file mode 100644
index 00000000..26bdeb55
--- /dev/null
+++ b/modern/src/RemoveDialog.js
@@ -0,0 +1,27 @@
+import t from './common/localization'
+import React, { Component } from 'react';
+import Button from '@material-ui/core/Button';
+import Dialog from '@material-ui/core/Dialog';
+import DialogActions from '@material-ui/core/DialogActions';
+import DialogContent from '@material-ui/core/DialogContent';
+import DialogContentText from '@material-ui/core/DialogContentText';
+
+class RemoveDialog extends Component {
+ render() {
+ return (
+ <Dialog
+ open={this.props.open}
+ onClose={() => { this.props.onClose() }}>
+ <DialogContent>
+ <DialogContentText>{t('sharedRemoveConfirm')}</DialogContentText>
+ </DialogContent>
+ <DialogActions>
+ <Button color="primary">{t('sharedRemove')}</Button>
+ <Button color="primary" autoFocus>{t('sharedCancel')}</Button>
+ </DialogActions>
+ </Dialog>
+ );
+ }
+}
+
+export default RemoveDialog;