Default Search Provider support; Style updates

This commit is contained in:
Sean Edmunds
2025-07-22 14:19:36 -05:00
parent 063bc10094
commit b948abad48
22 changed files with 391 additions and 278 deletions

View File

@@ -12,17 +12,13 @@ export function WeatherModal({
current,
extendedForecast,
weatherModalOpened,
setSearchValue,
setProviderLabel,
setProviderURL,
handleResetSearch,
closeWeatherModal,
}: {
current: CW;
extendedForecast: ExtendedForecast[];
weatherModalOpened: boolean;
setSearchValue: (value: string) => void;
setProviderLabel: (label: string) => void;
setProviderURL: (url: string) => void;
handleResetSearch: () => void;
closeWeatherModal: () => void;
}) {
const { isMobile, currentUser, currentLocation } = useCommonHooks();
@@ -48,9 +44,7 @@ export function WeatherModal({
opened={weatherModalOpened}
centered
onClose={() => {
setSearchValue('');
setProviderLabel('Google Search');
setProviderURL('https://www.google.com/search?q=');
handleResetSearch();
closeWeatherModal();
}}
closeOnEscape