err scr fix

This commit is contained in:
madarsbiss
2021-08-03 14:01:36 +03:00
parent b33a6ac6b2
commit cd76f6783a
2 changed files with 20 additions and 9 deletions

View File

@@ -339,14 +339,16 @@ export default function Home() {
</div>
) : weatherData && weatherData.message ? (
<div className={styles.errScr}>
<h1 style={{ marginBottom: "30px" }}>City not found, try again!</h1>
<input
type="text"
className={styles.searchInput}
onFocus={(e) => (e.target.value = "")}
onChange={(e) => setInput(e.target.value)}
onKeyDown={(e) => enterKeydown(e)}
/>
<div>
<h1 style={{ marginBottom: "30px" }}>City not found, try again!</h1>
<input
type="text"
className={styles.searchInput}
onFocus={(e) => (e.target.value = "")}
onChange={(e) => setInput(e.target.value)}
onKeyDown={(e) => enterKeydown(e)}
/>
</div>
</div>
) : (
<h1>Loading data...</h1>