Error fixes

This commit is contained in:
Sean Edmunds
2025-01-17 12:21:33 -06:00
parent 0ca9110379
commit eef30a84e3
7 changed files with 31 additions and 9 deletions

View File

@@ -50,7 +50,9 @@ export function Homepage({ theme }: any) {
const isMobile = window.matchMedia('(max-width: 600px)').matches;
const [weatherModalOpened, { open: openWeatherModal, close: closeWeatherModal }] =
useDisclosure(false);
const [providerLabel, setProviderLabel] = useState('Google Search');
const [providerURL, setProviderURL] = useState('https://www.google.com/search?q=');
const [value, setValue] = useState('');
useEffect(() => {
if (data) {
setDisplayedGreeting(greet(data));
@@ -124,6 +126,12 @@ export function Homepage({ theme }: any) {
basicWeather={basicWeather}
forecast={forecast}
hourly={hourly}
providerLabel={providerLabel}
setProviderLabel={setProviderLabel}
providerURL={providerURL}
setProviderURL={setProviderURL}
value={value}
setValue={setValue}
weatherModalOpened={weatherModalOpened}
closeWeatherModal={closeWeatherModal}
openWeatherModal={openWeatherModal}
@@ -139,6 +147,9 @@ export function Homepage({ theme }: any) {
basicWeather={basicWeather}
forecast={forecast}
hourly={hourly}
setProviderLabel={setProviderLabel}
setProviderURL={setProviderURL}
setValue={setValue}
weatherModalOpened={weatherModalOpened}
closeWeatherModal={closeWeatherModal}
openWeatherModal={openWeatherModal}