reorganization
This commit is contained in:
@ -31,7 +31,7 @@ export function EngineControls({ values, onChange }: EngineControlsProps) {
|
||||
{param.label.toUpperCase()}
|
||||
</label>
|
||||
<span className="font-mono text-[9px] text-white">
|
||||
{formatValue(param.id, values[param.id] ?? param.default)}
|
||||
{formatValue(param.id, (values[param.id] as number) ?? param.default)}
|
||||
</span>
|
||||
</div>
|
||||
<input
|
||||
@ -39,7 +39,7 @@ export function EngineControls({ values, onChange }: EngineControlsProps) {
|
||||
min={param.min}
|
||||
max={param.max}
|
||||
step={param.step}
|
||||
value={values[param.id] ?? param.default}
|
||||
value={(values[param.id] as number) ?? param.default}
|
||||
onChange={(e) => onChange(param.id, Number(e.target.value))}
|
||||
className="w-full h-[2px] bg-white appearance-none cursor-pointer"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user