From 8abf5781f32cd86e9647326204ceb53643751379 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Jun 2020 16:02:04 -0700 Subject: Use function for dialog --- modern/src/RemoveDialog.js | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'modern') diff --git a/modern/src/RemoveDialog.js b/modern/src/RemoveDialog.js index 26bdeb55..a8aae8b2 100644 --- a/modern/src/RemoveDialog.js +++ b/modern/src/RemoveDialog.js @@ -1,27 +1,24 @@ 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 ( - { this.props.onClose() }}> - - {t('sharedRemoveConfirm')} - - - - - - - ); - } -} +const RemoveDialog = () => { + return ( + { this.props.onClose() }}> + + {t('sharedRemoveConfirm')} + + + + + + + ); +}; export default RemoveDialog; -- cgit v1.2.3