Default Search Provider support; Style updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user