mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(app): app service form to react [EE-5415] (#8994)
This commit is contained in:
parent
2d05103fed
commit
69776b4863
26 changed files with 1224 additions and 538 deletions
|
@ -18,6 +18,7 @@ interface Props<T> {
|
|||
size?: Size;
|
||||
disabled?: boolean;
|
||||
readOnly?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ButtonSelector<T extends string | number>({
|
||||
|
@ -27,9 +28,10 @@ export function ButtonSelector<T extends string | number>({
|
|||
options,
|
||||
disabled,
|
||||
readOnly,
|
||||
className,
|
||||
}: Props<T>) {
|
||||
return (
|
||||
<ButtonGroup size={size} className={styles.group}>
|
||||
<ButtonGroup size={size} className={clsx(styles.group, className)}>
|
||||
{options.map((option) => (
|
||||
<OptionItem
|
||||
key={option.value}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue