1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

feat(microk8s): BE teasers in wizard [EE-4772] (#8449)

* feat(microk8s): separate existing/new envs EE-4772

update icons

fix be teaser box selector style

* match environment wizard box selectors

* revert title back

* updated kaas description in wizard

---------

Co-authored-by: testa113 <testa113>
Co-authored-by: Prabhat Khera <prabhat.khera@portainer.io>
This commit is contained in:
Ali 2023-03-03 12:27:24 +13:00 committed by GitHub
parent d032119ebc
commit 769c8372fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 124 additions and 49 deletions

View file

@ -20,12 +20,14 @@ export type Props<T extends Value> = Union<T> & {
radioName: string;
options: ReadonlyArray<BoxSelectorOption<T>> | Array<BoxSelectorOption<T>>;
slim?: boolean;
hiddenSpacingCount?: number;
};
export function BoxSelector<T extends Value>({
radioName,
options,
slim = false,
hiddenSpacingCount,
...props
}: Props<T>) {
return (
@ -47,6 +49,10 @@ export function BoxSelector<T extends Value>({
slim={slim}
/>
))}
{hiddenSpacingCount &&
Array.from(Array(hiddenSpacingCount)).map((_, index) => (
<div key={index} className="flex-1" />
))}
</div>
</div>
</div>