1115
This commit is contained in:
parent
8fcd74b79f
commit
d42096efed
|
|
@ -16,7 +16,8 @@ export function WeatherSearchForm() {
|
|||
setCity(e.target.value);
|
||||
if (inputError) {
|
||||
setInputError('');
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const handleFormSubmit = async (e: FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
|
|
@ -36,6 +37,7 @@ export function WeatherSearchForm() {
|
|||
return;
|
||||
}
|
||||
await searchWeather(trimmedCity);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='p-6 border-6 border-b-slate-200/50 '>
|
||||
|
|
@ -94,5 +96,4 @@ export function WeatherSearchForm() {
|
|||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue