More typing and fixes
This commit is contained in:
@@ -7,6 +7,7 @@ import { stackClasses } from 'styles';
|
||||
import type {
|
||||
CurrentWeather as CW,
|
||||
ExtendedForecast as EF,
|
||||
ExtendedForecast,
|
||||
Message,
|
||||
PersonalData,
|
||||
} from 'types';
|
||||
@@ -177,7 +178,7 @@ export function Homepage() {
|
||||
useEffect(() => {
|
||||
if (forecast) {
|
||||
setExtendedForecast(
|
||||
forecast.properties.periods.map((item: any) => ({
|
||||
forecast.properties.periods.map((item: ExtendedForecast) => ({
|
||||
detailedForecast: item.detailedForecast,
|
||||
isDaytime: item.isDaytime,
|
||||
name: item.name,
|
||||
@@ -196,6 +197,7 @@ export function Homepage() {
|
||||
});
|
||||
}
|
||||
}, [forecast]);
|
||||
|
||||
return (
|
||||
<Stack
|
||||
gap={0}
|
||||
|
||||
Reference in New Issue
Block a user