mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
#591 - storage-providers
This commit is contained in:
@ -111,12 +111,13 @@ export default function ConnectServerProvider({
|
||||
</FormField>
|
||||
{page.props.configs.server_providers_custom_fields[form.data.provider]?.map((item: string) => (
|
||||
<FormField key={item}>
|
||||
<Label htmlFor={item}>{item}</Label>
|
||||
<Label htmlFor={item} className="capitalize">
|
||||
{item.replaceAll('_', ' ')}
|
||||
</Label>
|
||||
<Input
|
||||
type="text"
|
||||
name={item}
|
||||
id={item}
|
||||
placeholder={item}
|
||||
value={(form.data[item as keyof ServerProviderForm] as string) ?? ''}
|
||||
onChange={(e) => form.setData(item as keyof ServerProviderForm, e.target.value)}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user