mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(app): add ingress to app service form [EE-5569] (#9106)
This commit is contained in:
parent
8c16fbb8aa
commit
89c1d0e337
47 changed files with 1929 additions and 1181 deletions
|
@ -7,11 +7,13 @@ import { FormSectionTitle } from '../FormSectionTitle';
|
|||
|
||||
interface Props {
|
||||
title: ReactNode;
|
||||
titleSize?: 'sm' | 'md' | 'lg';
|
||||
isFoldable?: boolean;
|
||||
}
|
||||
|
||||
export function FormSection({
|
||||
title,
|
||||
titleSize = 'md',
|
||||
children,
|
||||
isFoldable = false,
|
||||
}: PropsWithChildren<Props>) {
|
||||
|
@ -19,7 +21,10 @@ export function FormSection({
|
|||
|
||||
return (
|
||||
<>
|
||||
<FormSectionTitle htmlFor={isFoldable ? `foldingButton${title}` : ''}>
|
||||
<FormSectionTitle
|
||||
htmlFor={isFoldable ? `foldingButton${title}` : ''}
|
||||
titleSize={titleSize}
|
||||
>
|
||||
{isFoldable && (
|
||||
<button
|
||||
id={`foldingButton${title}`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue