summaryrefslogtreecommitdiff
path: root/client/components/CalorieView.jsx
blob: 3c5fe2d658a43c741d0e7d27a0a97bc74c0cff8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from 'react'
import ModalDialog from './ModalDialog.jsx'

export default class LoggedOutView extends React.Component {
  constructor() {
    super()
    this.state = { modal: null }
//     this.showLogin = this.showLogin.bind(this)
//     this.showSignup = this.showSignup.bind(this)
//     this.closeModal = this.closeModal.bind(this)
  }
//   showLogin() {
//     this.setState({ modal: 'login' })
//   }
//   showSignup() {
//     this.setState({ modal: 'signup' })
//   }
//   closeModal() {
//     this.setState({ modal: '' })
//   }
  render() {
//     const loginVisible = this.state.modal == 'login'
//     const signupVisible = this.state.modal == 'signup'
    return (
      <div>
        LOGGED IN
      </div>
//         <Welcome
//           onLoginClick={this.showLogin}
//           onSignupClick={this.showSignup} />
//         <LoginForm
//           client={this.props.client}
//           visible={loginVisible}
//           onClose={this.closeModal} />
//         <SignupForm
//           client={this.props.client}
//           visible={signupVisible}
//           onClose={this.closeModal} />
    )
  }
}


// export default class UserForm extends React.Component {
//   render() {
//     return (
//     )
//   }
// }
//
// export default class MealForm extends React.Component {
//   render() {
//     return (
//     )
//   }
// }