diff --git a/packages/frontend/src/components/projects/project/settings/AddEnvironmentVariableRow.tsx b/packages/frontend/src/components/projects/project/settings/AddEnvironmentVariableRow.tsx index 5cf0f0f6..1611f984 100644 --- a/packages/frontend/src/components/projects/project/settings/AddEnvironmentVariableRow.tsx +++ b/packages/frontend/src/components/projects/project/settings/AddEnvironmentVariableRow.tsx @@ -1,12 +1,10 @@ import { UseFormRegister } from 'react-hook-form'; -import { - Typography, - Input, - IconButton, -} from '@snowballtools/material-tailwind-react-fork'; +import { Input } from 'components/shared/Input'; -import { EnvironmentVariablesFormValues } from '../../../../types/types'; +import { EnvironmentVariablesFormValues } from '../../../../types'; +import { Button } from 'components/shared/Button'; +import { TrashIcon } from 'components/shared/CustomIcon'; interface AddEnvironmentVariableRowProps { onDelete: () => void; @@ -24,29 +22,32 @@ const AddEnvironmentVariableRow = ({ return (
- Key
- Value
- onDelete()} disabled={isDeleteDisabled} > - {'>'} - + +
); diff --git a/packages/frontend/src/pages/org-slug/projects/id/settings/EnvironmentVariables.tsx b/packages/frontend/src/pages/org-slug/projects/id/settings/EnvironmentVariables.tsx index 2be3dcd7..5cdf4850 100644 --- a/packages/frontend/src/pages/org-slug/projects/id/settings/EnvironmentVariables.tsx +++ b/packages/frontend/src/pages/org-slug/projects/id/settings/EnvironmentVariables.tsx @@ -5,19 +5,19 @@ import { useParams } from 'react-router-dom'; import { Environment, EnvironmentVariable } from 'gql-client'; import { - Typography, Collapse, Card, - Button, - Checkbox, Chip, } from '@snowballtools/material-tailwind-react-fork'; -import AddEnvironmentVariableRow from '../../../../../components/projects/project/settings/AddEnvironmentVariableRow'; -import DisplayEnvironmentVariables from '../../../../../components/projects/project/settings/DisplayEnvironmentVariables'; -import HorizontalLine from '../../../../../components/HorizontalLine'; import { useGQLClient } from '../../../../../context/GQLClientContext'; -import { EnvironmentVariablesFormValues } from '../../../../../types/types'; +import { EnvironmentVariablesFormValues } from '../../../../../types'; +import AddEnvironmentVariableRow from 'components/projects/project/settings/AddEnvironmentVariableRow'; +import DisplayEnvironmentVariables from 'components/projects/project/settings/DisplayEnvironmentVariables'; +import HorizontalLine from 'components/HorizontalLine'; +import { Heading } from 'components/shared/Heading'; +import { Button } from 'components/shared/Button'; +import { Checkbox } from 'components/shared/Checkbox'; export const EnvironmentVariablesTabPanel = () => { const { id } = useParams(); @@ -132,11 +132,13 @@ export const EnvironmentVariablesTabPanel = () => { ); return ( - <> - Environment variables - +
+ + Environment variables + +

A new deployment is required for your changes to take effect. - +

{ })}
{/* TODO: Implement import environment varible functionality */} -
{isFieldEmpty && ( @@ -202,7 +203,7 @@ export const EnvironmentVariablesTabPanel = () => { />
-
@@ -235,6 +236,6 @@ export const EnvironmentVariablesTabPanel = () => { }} />
- +
); };