mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 12:19:20 +00:00
env var register pass (#62)
This commit is contained in:
commit
879cfdb2bf
@ -22,7 +22,7 @@ const AddEnvironmentVariableRow = ({
|
|||||||
<div className="flex py-4 self-stretch">
|
<div className="flex py-4 self-stretch">
|
||||||
<Input
|
<Input
|
||||||
size="md"
|
size="md"
|
||||||
register={register(`variables.${index}.key`, {
|
{...register(`variables.${index}.key`, {
|
||||||
required: 'Key field cannot be empty',
|
required: 'Key field cannot be empty',
|
||||||
})}
|
})}
|
||||||
label={index === 0 ? 'Key' : undefined}
|
label={index === 0 ? 'Key' : undefined}
|
||||||
@ -30,7 +30,7 @@ const AddEnvironmentVariableRow = ({
|
|||||||
<Input
|
<Input
|
||||||
size="md"
|
size="md"
|
||||||
label={index === 0 ? 'Value' : undefined}
|
label={index === 0 ? 'Value' : undefined}
|
||||||
register={register(`variables.${index}.value`, {
|
{...register(`variables.${index}.value`, {
|
||||||
required: 'Value field cannot be empty',
|
required: 'Value field cannot be empty',
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user