mirror of https://github.com/portainer/portainer
fix(app): remove canUndo function from environment variables [EE-6232] (#10961)
Co-authored-by: testa113 <testa113>pull/10968/head
parent
a8e53a4510
commit
787c7ec4cc
@ -0,0 +1,30 @@
|
||||
import { FormSection } from '@@/form-components/FormSection';
|
||||
import {
|
||||
EnvVarValues,
|
||||
EnvironmentVariablesFieldset,
|
||||
} from '@@/form-components/EnvironmentVariablesFieldset';
|
||||
import { ArrayError } from '@@/form-components/InputList/InputList';
|
||||
|
||||
type Props = {
|
||||
values: EnvVarValues;
|
||||
onChange(value: EnvVarValues): void;
|
||||
errors?: ArrayError<EnvVarValues>;
|
||||
};
|
||||
|
||||
export function EnvironmentVariablesFormSection({
|
||||
values,
|
||||
onChange,
|
||||
errors,
|
||||
}: Props) {
|
||||
return (
|
||||
<FormSection title="Environment variables" titleSize="sm">
|
||||
<div className="mb-4">
|
||||
<EnvironmentVariablesFieldset
|
||||
values={values}
|
||||
onChange={onChange}
|
||||
errors={errors}
|
||||
/>
|
||||
</div>
|
||||
</FormSection>
|
||||
);
|
||||
}
|
Loading…
Reference in new issue