mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(stacks): update info text for stack environment variables [EE-6902] (#11551)
This commit is contained in:
parent
09837769d7
commit
b265810b95
8 changed files with 95 additions and 16 deletions
|
@ -11,6 +11,7 @@ interface Props {
|
|||
isFoldable?: boolean;
|
||||
defaultFolded?: boolean;
|
||||
titleClassName?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function FormSection({
|
||||
|
@ -20,11 +21,12 @@ export function FormSection({
|
|||
isFoldable = false,
|
||||
defaultFolded = isFoldable,
|
||||
titleClassName,
|
||||
className,
|
||||
}: PropsWithChildren<Props>) {
|
||||
const [isExpanded, setIsExpanded] = useState(!defaultFolded);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={className}>
|
||||
<FormSectionTitle
|
||||
htmlFor={isFoldable ? `foldingButton${title}` : ''}
|
||||
titleSize={titleSize}
|
||||
|
@ -52,6 +54,6 @@ export function FormSection({
|
|||
</FormSectionTitle>
|
||||
|
||||
{isExpanded && children}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue