mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(ui): apply controlled input to field [EE-6411] (#10738)
This commit is contained in:
parent
98157350b6
commit
e142939929
8 changed files with 41 additions and 50 deletions
|
@ -1,11 +1,12 @@
|
|||
import { ComponentProps } from 'react';
|
||||
|
||||
import { FormSection } from '@@/form-components/FormSection';
|
||||
import { TextTip } from '@@/Tip/TextTip';
|
||||
|
||||
import { ArrayError } from '../InputList/InputList';
|
||||
|
||||
import { Values } from './types';
|
||||
import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset';
|
||||
|
||||
type FieldsetProps = ComponentProps<typeof EnvironmentVariablesFieldset>;
|
||||
|
||||
export function EnvironmentVariablesPanel({
|
||||
explanation,
|
||||
onChange,
|
||||
|
@ -15,12 +16,9 @@ export function EnvironmentVariablesPanel({
|
|||
isFoldable = false,
|
||||
}: {
|
||||
explanation?: string;
|
||||
values: Values;
|
||||
onChange(value: Values): void;
|
||||
showHelpMessage?: boolean;
|
||||
errors?: ArrayError<Values>;
|
||||
isFoldable?: boolean;
|
||||
}) {
|
||||
} & FieldsetProps) {
|
||||
return (
|
||||
<FormSection
|
||||
title="Environment variables"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue