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:
parent
d032119ebc
commit
769c8372fb
11 changed files with 124 additions and 49 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue