Skip to content

Levy's RTK Weather#11

Open
levydowell wants to merge 5 commits into
projectshft:mainfrom
levydowell:main
Open

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

Conversation

@levydowell

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove console logs

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

Copy link
Copy Markdown

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 thread app/layout.js
Comment on lines +11 to +14
<body className={inter.className}>
<Provider store={store}>{children}</Provider>
</body>
</html>

Copy link
Copy Markdown

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 thread app/page.js
Comment on lines +13 to +17
return (
<main>
<InputField />
</main>
)

Copy link
Copy Markdown

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} ))

Copy link
Copy Markdown

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>

Copy link
Copy Markdown

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