Complete project redo, got carried away, and forgot to commit during rewriting

This commit is contained in:
mrfry
2021-02-21 14:47:39 +01:00
parent 274cee57b9
commit 2ae8d7ffb2
29 changed files with 2007 additions and 875 deletions
+28
View File
@@ -0,0 +1,28 @@
import React from 'react'
import styles from './searchBar.module.css'
export default function SearchBar(props) {
const { onChange, value } = props
return (
<div className={styles.searchContainer}>
<input
placeholder="Keresés..."
className={styles.searchBar}
type="text"
value={value}
onChange={(e) => {
onChange(e.target.value)
}}
/>
<button
onClick={() => {
onChange('')
}}
className={styles.clearButton}
>
</button>
</div>
)
}