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

Commit

Permalink
🐛 - fixed a few console warning and errors
Browse files Browse the repository at this point in the history
There still 2 warnings; 1 for unused var that's breaks everything if I remove it: checkInComplet checkInComp = null; The other warning message is for the sign-out button link. Want's a valid href in the <a> tag.  chingu-voyages#94
  • Loading branch information
paulywill committed Apr 29, 2019
1 parent 065ef07 commit 2224dc0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class App extends Component {
<Dashboard
displayName={this.state.displayName}
email={this.state.email} />
<button><a className={styles.button} onClick={() => firebaseApp.auth().signOut()}>Sign-out</a></button>
<button>
<a className={styles.button} onClick={() => firebaseApp.auth().signOut()}>Sign-out</a>
</button>
<Footer />
</div>
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import axios from 'axios';

import NewHabit from './NewHabit';
//import NewHabit from './NewHabit';
import CheckIn from './CheckIn';
import CurrentHabit from './CurrentHabit';
import Progress from './Progress';
Expand All @@ -20,7 +20,7 @@ class Dashboard extends Component {

//used componentDidUpdate due to async nature of firebase/props
componentDidUpdate(prevProps) {
if (this.props.email != undefined && this.props.email !== prevProps.email) {
if (this.props.email !== undefined && this.props.email !== prevProps.email) {
// Do what you want with email
const user = this.props.email
console.log("email is: " + user)
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Progress extends Component {
render() {
return (
<div>
{/* <CalHM /> */}
<CalHM />
</div>
)
}
Expand Down

0 comments on commit 2224dc0

Please sign in to comment.