a few js changes for react upgrades
This commit is contained in:
@@ -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}>
|
||||
|
@@ -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" >
|
||||
|
@@ -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}>
|
||||
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user