diff options
Diffstat (limited to 'modern/src/RemoveDialog.js')
-rw-r--r-- | modern/src/RemoveDialog.js | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/modern/src/RemoveDialog.js b/modern/src/RemoveDialog.js index a8107357..8e7d97f4 100644 --- a/modern/src/RemoveDialog.js +++ b/modern/src/RemoveDialog.js @@ -15,19 +15,17 @@ const RemoveDialog = ({ open, endpoint, itemId, onResult }) => { }; return ( - <> - <Dialog - open={open} - onClose={() => { onResult(false) }}> - <DialogContent> - <DialogContentText>{t('sharedRemoveConfirm')}</DialogContentText> - </DialogContent> - <DialogActions> - <Button color="primary" onClick={handleRemove}>{t('sharedRemove')}</Button> - <Button autoFocus onClick={() => onResult(false)}>{t('sharedCancel')}</Button> - </DialogActions> - </Dialog> - </> + <Dialog + open={open} + onClose={() => { onResult(false) }}> + <DialogContent> + <DialogContentText>{t('sharedRemoveConfirm')}</DialogContentText> + </DialogContent> + <DialogActions> + <Button color="primary" onClick={handleRemove}>{t('sharedRemove')}</Button> + <Button autoFocus onClick={() => onResult(false)}>{t('sharedCancel')}</Button> + </DialogActions> + </Dialog> ); }; |