Confirmation dialog: fix confirmation dialog titles.

master
Tom Hacohen 6 years ago
parent 68b38f115f
commit 4255e9f3d8

@ -1,6 +1,7 @@
import * as 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 DialogActions from '@material-ui/core/DialogActions';
import Button from '@material-ui/core/Button';
@ -9,6 +10,7 @@ import { pure } from 'recompose';
export default pure((_props: any) => {
const {
title,
children,
onCancel,
onOk,
@ -21,6 +23,9 @@ export default pure((_props: any) => {
onClose={onCancel}
{...props}
>
<DialogTitle>
{title}
</DialogTitle>
<DialogContent>
{children}
</DialogContent>

Loading…
Cancel
Save