Skip to content

Commit

Permalink
cleaned debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhsu committed Jan 14, 2019
1 parent 2a29a60 commit dcaf05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
7 changes: 3 additions & 4 deletions src/Details.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ class Details extends Component {
<Day key={day.dt} day={day}/>
<div className="details-container">
<p>{day.weather[0].description}</p>
<p>min temp: {dateHelper.convertTemp(day.temp.min)}</p>
<p>max temp: {dateHelper.convertTemp(day.temp.max)}</p>
<p>humidity: {day.humidity}</p>
<p>min temp: {dateHelper.convertTemp(day.temp.min)}°F</p>
<p>max temp: {dateHelper.convertTemp(day.temp.max)}°F</p>
<p>humidity: {day.humidity}%</p>
</div>
{/* {JSON.stringify(day.humidity)} */}
</div>
)
}
Expand Down
11 changes: 0 additions & 11 deletions src/Forecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ class Forecast extends Component {

return (
<div className="container">
{/* {JSON.stringify(weather["0"])} */}
{/* {JSON.stringify(weather["0"])} */}
{/* {JSON.stringify(dateHelper.convertTimestamp(weather[0].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[1].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[2].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[3].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[4].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[5].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[6].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[7].dt))}
{JSON.stringify(dateHelper.convertTimestamp(weather[8].dt))} */}
{weather.map(function(day) {
return <Day onClick={_ => this.handleClick(day)} key={day.dt} day={day}/>
}, this)}
Expand Down

0 comments on commit dcaf05f

Please sign in to comment.