feat: Update 'style' string input to also display text area

This commit is contained in:
blessedcoolant
2023-07-29 15:52:59 +12:00
parent 8a0e1b6cfc
commit 8e06e6abbc

View File

@ -26,8 +26,8 @@ const StringInputFieldComponent = (
); );
}; };
return field.name.toLowerCase() === 'prompt' ? ( return ['prompt', 'style'].includes(field.name.toLowerCase()) ? (
<Textarea onChange={handleValueChanged} value={field.value} rows={5} /> <Textarea onChange={handleValueChanged} value={field.value} rows={2} />
) : ( ) : (
<Input onChange={handleValueChanged} value={field.value} /> <Input onChange={handleValueChanged} value={field.value} />
); );