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'
export default function DbSelector(props) {
const { qdbs, onChange } = props
return (
<>
<select
style={{ margin: '10px 0px' }}
defaultValue={-1}
onChange={(event) => {
onChange(qdbs[event.target.value])
}}
>
<option disabled value={-1}>
{' -- Válassz egy kérdés adatbázist -- '}
</option>
{qdbs.map((qdb, i) => {
return (
<option value={i} key={qdb.name}>
{qdb.name}
</option>
)
})}
</select>
</>
)
}