update select dialog
This commit is contained in:
parent
e9a0a06b77
commit
cba9169b2f
4 changed files with 13 additions and 8 deletions
|
|
@ -7,10 +7,9 @@ export function AudioEngineTargetSelector({ target, onChange, isDisabled }) {
|
|||
const onTargetChange = (target) => {
|
||||
onChange(target);
|
||||
};
|
||||
const options = new Map();
|
||||
Array.from(Object.keys(audioEngineTargets)).map((key) => {
|
||||
options.set(key, key);
|
||||
});
|
||||
|
||||
const options = new Map([
|
||||
[audioEngineTargets.webaudio, audioEngineTargets.webaudio ],
|
||||
[audioEngineTargets.superdirt, 'superdirt (osc)'],
|
||||
]);
|
||||
return <SelectInput isDisabled={isDisabled} options={options} value={target} onChange={onTargetChange} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue