Commit 47d40af2 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix type.

parent 08aed930
......@@ -12,10 +12,13 @@ class ConfirmDialog extends React.Component {
onOk: PropTypes.func.isRequired,
onClose: PropTypes.func.isRequired,
open: PropTypes.bool,
title: PropTypes.string,
children: PropTypes.any
}
render() {
const { children, title } = this.props
return (
<div>
<Dialog
......@@ -24,10 +27,10 @@ class ConfirmDialog extends React.Component {
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogTitle id="alert-dialog-title">{"Use Google's location service?"}</DialogTitle>
<DialogTitle id="alert-dialog-title">{title || 'Confirm'}</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-description">
{this.props.children}
{children}
</DialogContentText>
</DialogContent>
<DialogActions>
......
......@@ -291,7 +291,7 @@ class Uploads extends React.Component {
id="name-helper" value={this.state.uploadName}
onChange={(event) => this.setState({uploadName: event.target.value})}
/>
<FormHelperText id="name-helper-text">optiona, helps to track the upload</FormHelperText>
<FormHelperText id="name-helper-text">optional, helps to track the upload</FormHelperText>
</DialogContent>
<DialogActions>
<Button
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment