Skip to content

Comments

rtk- weather project #10

Open
lesavantdon wants to merge 3 commits intoprojectshft:mainfrom
lesavantdon:main
Open

rtk- weather project #10
lesavantdon wants to merge 3 commits intoprojectshft:mainfrom
lesavantdon:main

Conversation

@lesavantdon
Copy link

No description provided.

@lesavantdon lesavantdon changed the title rtk- weather project first draft rtk- weather project May 29, 2024
);
}

export default App;

Choose a reason for hiding this comment

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

no need for the _ in the file name

.addCase(fetchWeather.fulfilled, (state, action) => {
state.loading = false;
const newEntries = action.payload.list
.filter((_, index) => index % 8 === 0)

Choose a reason for hiding this comment

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

for readability, the callback filter function should be extracted

import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';

// Convert Kelvin to Fahrenheit
const kelvinToFahrenheit = (kelvin) => {

Choose a reason for hiding this comment

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

kelvin is a unit, not a value, the param name is confusing

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