mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(app templates): load app template for deployment [BE-11382] (#141)
This commit is contained in:
parent
20e3d3a15b
commit
c0c7144539
23 changed files with 453 additions and 60 deletions
|
@ -1,3 +1,5 @@
|
|||
import { FormError } from '@@/form-components/FormError';
|
||||
|
||||
import styles from './BoxSelector.module.css';
|
||||
import { BoxSelectorItem } from './BoxSelectorItem';
|
||||
import { BoxSelectorOption, Value } from './types';
|
||||
|
@ -21,6 +23,7 @@ export type Props<T extends Value> = Union<T> & {
|
|||
options: ReadonlyArray<BoxSelectorOption<T>> | Array<BoxSelectorOption<T>>;
|
||||
slim?: boolean;
|
||||
hiddenSpacingCount?: number;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export function BoxSelector<T extends Value>({
|
||||
|
@ -28,6 +31,7 @@ export function BoxSelector<T extends Value>({
|
|||
options,
|
||||
slim = false,
|
||||
hiddenSpacingCount,
|
||||
error,
|
||||
...props
|
||||
}: Props<T>) {
|
||||
return (
|
||||
|
@ -54,6 +58,7 @@ export function BoxSelector<T extends Value>({
|
|||
<div key={index} className="flex-1" />
|
||||
))}
|
||||
</div>
|
||||
{error && <FormError>{error}</FormError>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue