npm packages update

This commit is contained in:
mrfry 2023-03-09 16:31:34 +01:00
parent ed507dc39f
commit 32522097c0
51 changed files with 3247 additions and 5187 deletions

View file

@ -0,0 +1,28 @@
import React from 'react'
import styles from './searchBar.module.css'
export default function SearchBar({ searchTerm, onChange }) {
return (
<center>
<div className={styles.searchContainer}>
<input
placeholder="Kezdj el írni a kereséshez..."
type="text"
value={searchTerm}
onChange={(event) => {
onChange(event.target.value)
}}
/>
<button
onClick={() => {
onChange('')
}}
className={styles.clearButton}
>
</button>
</div>
</center>
)
}