Made signature of types.stringLiteral() a bit more ergonomic
This commit is contained in:
parent
deb1ad8793
commit
97ce94d52a
3 changed files with 24 additions and 23 deletions
|
@ -77,9 +77,9 @@ const StringLiteralPropEditor: React.FC<{
|
|||
{stuff.controlIndicators}
|
||||
<Body>
|
||||
<select value={stuff.value} onChange={onChange}>
|
||||
{propConfig.options.map((opt, i) => (
|
||||
<option key={'option-' + i} value={opt}>
|
||||
{opt}
|
||||
{Object.keys(propConfig.options).map((key, i) => (
|
||||
<option key={'option-' + i} value={key}>
|
||||
{propConfig.options[key]}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue