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:
@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user