From 1e7ce38abcc7dfa922ab37f974c5ba5927ae2f6b Mon Sep 17 00:00:00 2001 From: Ashley McEntee <123661468+ashley-o0o@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:37:49 -0500 Subject: [PATCH 1/2] Adds required to environment variables --- .../EnvTypeSelectField.tsx | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/frontend/src/pages/projects/screens/spawner/environmentVariables/EnvTypeSelectField.tsx b/frontend/src/pages/projects/screens/spawner/environmentVariables/EnvTypeSelectField.tsx index 025498de5c..dc300bcc36 100644 --- a/frontend/src/pages/projects/screens/spawner/environmentVariables/EnvTypeSelectField.tsx +++ b/frontend/src/pages/projects/screens/spawner/environmentVariables/EnvTypeSelectField.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Button, Split, SplitItem, Stack, StackItem } from '@patternfly/react-core'; +import { Button, FormGroup, Split, SplitItem, Stack, StackItem } from '@patternfly/react-core'; import { MinusCircleIcon } from '@patternfly/react-icons'; import { EnvironmentVariableType, EnvVariable } from '~/pages/projects/types'; import IndentSection from '~/pages/projects/components/IndentSection'; @@ -18,50 +18,52 @@ const EnvTypeSelectField: React.FC = ({ onUpdate, onRemove, }) => ( - - - - - ({ - key: type, - label: type, - }))} - onChange={(value) => { - const enumValue = asEnumMember(value, EnvironmentVariableType); - if (enumValue !== null) { - onUpdate({ - type: enumValue, - }); - } - }} - /> - - {envVariable.type && ( - - - onUpdate({ ...envVariable, values: envValue })} - /> - + + + + + + ({ + key: type, + label: type, + }))} + onChange={(value) => { + const enumValue = asEnumMember(value, EnvironmentVariableType); + if (enumValue !== null) { + onUpdate({ + type: enumValue, + }); + } + }} + /> - )} - - - -