diff --git a/app/components/welcome/index.tsx b/app/components/welcome/index.tsx index 90476f0..16a2742 100644 --- a/app/components/welcome/index.tsx +++ b/app/components/welcome/index.tsx @@ -92,10 +92,10 @@ const Welcome: FC = ({ return (
{promptConfig.prompt_variables.map(item => ( -
- +
+ {item.type === 'select' - ? ( + && ( { setInputs({ ...inputs, [item.key]: e.target.value }) }} - className={'w-full flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50'} - maxLength={item.max_length || DEFAULT_VALUE_MAX_LEN} - /> )} + {item.type === 'string' && ( + { setInputs({ ...inputs, [item.key]: e.target.value }) }} + className={'w-full flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50'} + maxLength={item.max_length || DEFAULT_VALUE_MAX_LEN} + /> + )} + {item.type === 'paragraph' && ( +