Skip to content

redux-weather-wla#77

Open
Will9214 wants to merge 4 commits intoprojectshft:masterfrom
Will9214:master
Open

redux-weather-wla#77
Will9214 wants to merge 4 commits intoprojectshft:masterfrom
Will9214:master

Conversation

@Will9214
Copy link

No description provided.

city: action.payload.data.city.name,

// creates an array of all the 5 day forecast data for temp, pressure, and humidity. The array will be used for sparklines
temps: action.payload.data.list.map(obj => obj.main.temp),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't recommend using generic terms like obj to name things. Be as descriptive as possible with naming.

import _ from 'lodash';


const ForecastList = () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a lot of inconsistency in how you are writing functions (expression/declaration). It is good to stay consistent.

@@ -0,0 +1,16 @@
const header = (props) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like how you broke this out into components, nice work!


// clears value from input once submitted
reset();
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing some semi-colons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants