MainLayout for theme persistence
This commit is contained in:
@@ -14,7 +14,6 @@ export function WeatherModal({
|
||||
hourly,
|
||||
closeWeatherModal,
|
||||
weatherModalOpened,
|
||||
setValue,
|
||||
setProviderLabel,
|
||||
setProviderURL,
|
||||
isMobile,
|
||||
@@ -50,7 +49,6 @@ export function WeatherModal({
|
||||
opened={weatherModalOpened}
|
||||
onClose={() => {
|
||||
closeWeatherModal();
|
||||
setValue('');
|
||||
setProviderLabel('Google Search');
|
||||
setProviderURL('https://www.google.com/search?q=');
|
||||
}}
|
||||
@@ -119,7 +117,9 @@ export function WeatherModal({
|
||||
>
|
||||
{hourlyForecast.length > 0 &&
|
||||
hourlyForecast.map((h: any) => {
|
||||
return <HourlyCard key={h.time} weather={h} isMobile={isMobile} />;
|
||||
return (
|
||||
<HourlyCard key={h.number} weather={h} isMobile={isMobile} />
|
||||
);
|
||||
})}
|
||||
</Box>
|
||||
</Group>
|
||||
|
||||
Reference in New Issue
Block a user