Skip to content

Comments

Michael Wagner Weather Eval#13

Open
Michael-Wagner459 wants to merge 4 commits intoprojectshft:mainfrom
Michael-Wagner459:main
Open

Michael Wagner Weather Eval#13
Michael-Wagner459 wants to merge 4 commits intoprojectshft:mainfrom
Michael-Wagner459:main

Conversation

@Michael-Wagner459
Copy link

No description provided.

Comment on lines +11 to +12
<br />
<br />

Choose a reason for hiding this comment

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

Its not a good practice to use breaks for design purposes. Next time use css

import rootReducer from './rootReducer';

const store = configureStore({
reducer: rootReducer,

Choose a reason for hiding this comment

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

check your code alignment

const handleFormSubmit = (event) => {
event.preventDefault();
dispatch(fetchWeather(city));
setCity('');

Choose a reason for hiding this comment

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

its a better UX to clear the input only after the call is successful. If the user enters a bad input, you want to see it and not clear it

Comment on lines +27 to +44
<td>
<Sparklines data={city.temp}>
<SparklinesLine color='blue' />
<SparklinesReferenceLine type='avg' />
</Sparklines>
</td>
<td>
<Sparklines data={city.pressure}>
<SparklinesLine color='red' />
<SparklinesReferenceLine type='avg' />
</Sparklines>
</td>
<td>
<Sparklines data={city.humidity}>
<SparklinesLine color='yellow' />
<SparklinesReferenceLine type='avg' />
</Sparklines>
</td>

Choose a reason for hiding this comment

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

DRY, don't repeat yourself, use JS helpers and components to make it more readable

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