env var needs fixing

This commit is contained in:
Vivian Phung 2024-05-13 17:35:19 -04:00 committed by Vivian Phung
parent e9a367db42
commit 57601e6b4b

View File

@ -19,10 +19,10 @@ const AddEnvironmentVariableRow = ({
isDeleteDisabled,
}: AddEnvironmentVariableRowProps) => {
return (
<div className="flex gap-1 py-4 self-stretch">
<div className="flex py-4 self-stretch">
<Input
size="md"
{...register(`variables.${index}.key`, {
register={register(`variables.${index}.key`, {
required: 'Key field cannot be empty',
})}
label={index === 0 ? 'Key' : undefined}
@ -30,7 +30,7 @@ const AddEnvironmentVariableRow = ({
<Input
size="md"
label={index === 0 ? 'Value' : undefined}
{...register(`variables.${index}.value`, {
register={register(`variables.${index}.value`, {
required: 'Value field cannot be empty',
})}
/>
@ -38,7 +38,7 @@ const AddEnvironmentVariableRow = ({
<Button
size="md"
iconOnly
onClick={() => onDelete()}
onClick={onDelete}
disabled={isDeleteDisabled}
>
<TrashIcon />