Massive refactor complete

This commit is contained in:
2019-05-31 13:44:01 +10:00
parent b97d8fc184
commit 4a2bfb3db9
47 changed files with 1223 additions and 991 deletions
+4 -5
View File
@@ -8,8 +8,7 @@ class Signup extends React.Component {
constructor(props) {
super(props);
this.state = {
signupSent: false,
signupMsg: ''
signedUp: ''
}
//TODO: referral links
@@ -18,13 +17,13 @@ class Signup extends React.Component {
render() {
let Panel;
if (!this.state.signupSent) {
if (!this.state.signedUp) {
Panel = () => {
return (<SignupPanel onSignup={(msg) => this.setState( {signupSent: true, signupMsg: msg} )} />);
return (<SignupPanel onSuccess={ (msg) => this.setState({signedUp: msg}) } />);
}
} else {
Panel = () => {
return (<p>{this.state.signupMsg}</p>);
return (<p className='centered'>{this.state.signedUp}</p>);
}
}