Broke up the home page
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import { validateEmail } from '../../../common/utilities.js';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default class Signup extends React.Component {
|
||||
class Signup extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
@@ -70,6 +71,7 @@ export default class Signup extends React.Component {
|
||||
if (xhr.status === 200) {
|
||||
if (this.props.onSignup) {
|
||||
this.props.onSignup(xhr.responseText);
|
||||
console.log('trying to...');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,4 +152,10 @@ export default class Signup extends React.Component {
|
||||
retype: evt.target.value
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Signup.propTypes = {
|
||||
onSignup: PropTypes.func
|
||||
};
|
||||
|
||||
export default Signup;
|
||||
Reference in New Issue
Block a user