mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2026-04-29 03:37:38 +02:00
Complete project redo, got carried away, and forgot to commit during rewriting
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user