Add fields to update in update record action (#9108)

- update backend action so it handles composite fields
- add fields to update multiselect
- generate form based on that field
- add icons
This commit is contained in:
Thomas Trompette
2024-12-18 14:32:21 +01:00
committed by GitHub
parent b6508cc615
commit 94676215ad
9 changed files with 191 additions and 15 deletions

View File

@ -1,4 +1,4 @@
import { Tag } from '@ui/display';
import { IconComponent, Tag } from '@ui/display';
import { Checkbox, CheckboxShape, CheckboxSize } from '@ui/input';
import { ThemeColor } from '@ui/theme';
import {
@ -13,6 +13,7 @@ type MenuItemMultiSelectTagProps = {
onClick?: () => void;
color: ThemeColor | 'transparent';
text: string;
Icon?: IconComponent;
};
export const MenuItemMultiSelectTag = ({
@ -22,6 +23,7 @@ export const MenuItemMultiSelectTag = ({
onClick,
isKeySelected,
text,
Icon,
}: MenuItemMultiSelectTagProps) => {
return (
<StyledMenuItemBase
@ -35,7 +37,7 @@ export const MenuItemMultiSelectTag = ({
checked={selected}
/>
<StyledMenuItemLeftContent>
<Tag color={color} text={text} />
<Tag color={color} text={text} Icon={Icon} />
</StyledMenuItemLeftContent>
</StyledMenuItemBase>
);