1
0
Fork 0
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:
Ali 2023-06-26 16:21:19 +12:00 committed by GitHub
parent 8c16fbb8aa
commit 89c1d0e337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 1929 additions and 1181 deletions

View file

@ -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}`}