Updating client dependancies and ESLint (#2954)
* Updating client dependancies * Fixing eslint errors with updates * Updating eslint
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
a3cfdf0483
Коммит
4b260b761a
@@ -25,7 +25,7 @@ export default class ModalToggleButton extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const {children, dialogType, dialogProps, onClick, ...props} = this.props; // eslint-disable-line no-use-before-define
|
||||
const {children, dialogType, dialogProps, onClick, ...props} = this.props;
|
||||
|
||||
// allow callers to provide an onClick which will be called before the modal is shown
|
||||
let clickHandler = this.show;
|
||||
@@ -38,7 +38,7 @@ export default class ModalToggleButton extends React.Component {
|
||||
}
|
||||
|
||||
// this assumes that all modals will have a show property and an onHide event
|
||||
const dialog = React.createElement(this.props.dialogType, Object.assign({}, dialogProps, {
|
||||
const dialog = React.createElement(dialogType, Object.assign({}, dialogProps, {
|
||||
show: this.state.show,
|
||||
onHide: () => {
|
||||
this.hide();
|
||||
|
||||
Ссылка в новой задаче
Block a user