From c548b3bd3f0de1a1a74606d60ef9fdd323792918 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 18 Mar 2017 21:42:30 +0100 Subject: user authentication in browser --- client/components/CalorieView.jsx | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 client/components/CalorieView.jsx (limited to 'client/components/CalorieView.jsx') diff --git a/client/components/CalorieView.jsx b/client/components/CalorieView.jsx new file mode 100644 index 0000000..3c5fe2d --- /dev/null +++ b/client/components/CalorieView.jsx @@ -0,0 +1,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 ( +
+ LOGGED IN +
+// +// +// + ) + } +} + + +// export default class UserForm extends React.Component { +// render() { +// return ( +// ) +// } +// } +// +// export default class MealForm extends React.Component { +// render() { +// return ( +// ) +// } +// } -- cgit v1.2.3-70-g09d2