From dcaf05f6bf2877130913e5a61c8a20ac0203e0df Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 13 Jan 2019 21:35:31 -0800 Subject: [PATCH] cleaned debug statements --- src/Details.js | 7 +++---- src/Forecast.js | 11 ----------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Details.js b/src/Details.js index 0a8b683..fcd0924 100644 --- a/src/Details.js +++ b/src/Details.js @@ -10,11 +10,10 @@ class Details extends Component {

{day.weather[0].description}

-

min temp: {dateHelper.convertTemp(day.temp.min)}

-

max temp: {dateHelper.convertTemp(day.temp.max)}

-

humidity: {day.humidity}

+

min temp: {dateHelper.convertTemp(day.temp.min)}°F

+

max temp: {dateHelper.convertTemp(day.temp.max)}°F

+

humidity: {day.humidity}%

- {/* {JSON.stringify(day.humidity)} */} ) } diff --git a/src/Forecast.js b/src/Forecast.js index a80ae34..f507546 100644 --- a/src/Forecast.js +++ b/src/Forecast.js @@ -74,17 +74,6 @@ class Forecast extends Component { return (
- {/* {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 this.handleClick(day)} key={day.dt} day={day}/> }, this)}