Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
⚗ - added CheckInForm
Browse files Browse the repository at this point in the history
Still playing with form refactor chingu-voyages#94
  • Loading branch information
paulywill committed Apr 30, 2019
1 parent 005d6e5 commit 90a4154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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 })
})
)
Expand Down Expand Up @@ -79,6 +80,7 @@ class Dashboard extends Component {
<p>Have a habit? : {this.state.habitExist.toString()}</p>
{/* TESTING FORM */}
<NewHabitForm />
<CheckInForm />
<br />
<br />
<br />
Expand Down

0 comments on commit 90a4154

Please sign in to comment.