Skip to content

Comments

Levy's RTK Weather#11

Open
levydowell wants to merge 5 commits intoprojectshft:mainfrom
levydowell:main
Open

Levy's RTK Weather#11
levydowell wants to merge 5 commits intoprojectshft:mainfrom
levydowell:main

Conversation

@levydowell
Copy link

Styling isn't the greatest, but I need to move on for now.

*/
const findAvg = (data, avgType) => {
const typeData = data.map((datum) => datum.main[avgType]);
console.log('here', typeData, typeData.length);

Choose a reason for hiding this comment

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

remove console logs

*
* @returns react component containing all of the weather data for each city entered.
*/
export const AllData = () => {

Choose a reason for hiding this comment

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

This name is a bit to generic. Personally, prefer something more like specific that will allow me understand from the file name what the component is responsible for. i.e.
CityWeatherData

Comment on lines +11 to +14
<body className={inter.className}>
<Provider store={store}>{children}</Provider>
</body>
</html>

Choose a reason for hiding this comment

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

styling went off here

Comment on lines +13 to +17
return (
<main>
<InputField />
</main>
)

Choose a reason for hiding this comment

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

watch out for the style

const latitude = response.payload[0].lat;
const longitude = response.payload[0].lon;
dispatch(fetchWeather( {latitude, longitude} ))

Choose a reason for hiding this comment

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

remove empty line

onChange={(e) => setInput(e.target.value)} />
<button className='btn btn-primary' type='button' onClick={handleClick}>Search</button>
</div>

Choose a reason for hiding this comment

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

empty line

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