MainLayout for theme persistence

This commit is contained in:
Sean Edmunds
2025-01-17 11:33:30 -06:00
parent f49895dee9
commit e7f5e94ed6
13 changed files with 150 additions and 77 deletions

View File

@@ -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>