Add constructor to handle this
This commit is contained in:
parent
1752cec20d
commit
e4f961f2f0
|
@ -3,6 +3,11 @@ const ReactDOM = require('react-dom');
|
||||||
const {Button, Col, ControlLabel, Form, FormGroup, FormControl, Modal} = require('react-bootstrap');
|
const {Button, Col, ControlLabel, Form, FormGroup, FormControl, Modal} = require('react-bootstrap');
|
||||||
|
|
||||||
class LoginModal extends React.Component {
|
class LoginModal extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.handleSubmit = this.handleSubmit.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
handleSubmit(event) {
|
handleSubmit(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const usernameNode = ReactDOM.findDOMNode(this.refs.username);
|
const usernameNode = ReactDOM.findDOMNode(this.refs.username);
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
|
||||||
class TeamListItem extends React.Component {
|
class TeamListItem extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.handleTeamRemove = this.handleTeamRemove.bind(this);
|
||||||
|
this.handleTeamEditing = this.handleTeamEditing.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
handleTeamRemove() {
|
handleTeamRemove() {
|
||||||
this.props.onTeamRemove();
|
this.props.onTeamRemove();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue