a few js changes for react upgrades

This commit is contained in:
2018-03-04 21:23:57 -05:00
parent 34e5f5139a
commit ca1ed925d3
6 changed files with 14 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ const inlineStyle = {
}
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { classes, onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>

View File

@@ -63,7 +63,7 @@ class ChangeStorageModal extends React.Component {
}
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { classes, onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>
<IconButton onClick={this.handleClickOpen} color="primary" data-tip="Change Storage Location" style={button} centerRipple aria-label="Change Storage Location" >

View File

@@ -83,7 +83,7 @@ class DeleteTorrentModal extends React.Component {
}
render() {
const { onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>

View File

@@ -88,7 +88,7 @@ export default class Login extends React.Component {
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
return (
<Dialog open={this.state.open} onRequestClose={this.handleRequestClose} ignoreBackdropClick={true} disableBackdrop={true}>
<Dialog open={this.state.open} onClose={this.handleRequestClose} ignoreBackdropClick={true} disableBackdrop={true}>
<DialogTitle>Login Here</DialogTitle>
<DialogContent>
<DialogContentText>