From 90a415496bbcd0fe78e6d1cb8f4081f386304890 Mon Sep 17 00:00:00 2001 From: Paul Gamble Date: Tue, 30 Apr 2019 12:29:15 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=20=20-=20added=20CheckInForm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still playing with form refactor #94 --- client/src/components/Dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/Dashboard.js b/client/src/components/Dashboard.js index 103848a..9bab068 100644 --- a/client/src/components/Dashboard.js +++ b/client/src/components/Dashboard.js @@ -6,6 +6,7 @@ import NewHabitForm from './NewHabitForm'; import CheckIn from './CheckIn'; import CurrentHabit from './CurrentHabit'; import Progress from './Progress'; +import CheckInForm from './CheckInForm'; class Dashboard extends Component { @@ -27,7 +28,7 @@ class Dashboard extends Component { .then(res => this.setState({ habitData: res.data.data }, () => { this.state.habitData ? this.setState({ - newEntry: false, newEntryButton: false + habitExist: true, newEntry: false, newEntryButton: false }) : this.setState({ newEntry: true, newEntryButton: true, habitExist: false }) }) ) @@ -79,6 +80,7 @@ class Dashboard extends Component {

Have a habit? : {this.state.habitExist.toString()}

{/* TESTING FORM */} +