Skip to content

Commit

Permalink
chore: remove link list block with additional fields block
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgulbis committed Dec 13, 2024
1 parent 33962b1 commit a31ca11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
12 changes: 12 additions & 0 deletions demo/admin/src/common/blocks/LinkListBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { createListBlock } from "@comet/blocks-admin";
import { TextLinkBlock } from "@src/common/blocks/TextLinkBlock";
import { userGroupAdditionalItemFields } from "@src/userGroups/userGroupAdditionalItemFields";
import { UserGroupChip } from "@src/userGroups/UserGroupChip";
import { UserGroupContextMenuItem } from "@src/userGroups/UserGroupContextMenuItem";
import { FormattedMessage } from "react-intl";

export const LinkListBlock = createListBlock({
Expand All @@ -8,4 +11,13 @@ export const LinkListBlock = createListBlock({
displayName: <FormattedMessage id="blocks.linkList.displayName" defaultMessage="Link list" />,
itemName: <FormattedMessage id="blocks.linkList.itemName" defaultMessage="link" />,
itemsName: <FormattedMessage id="blocks.linkList.itemsName" defaultMessage="links" />,
additionalItemFields: {
...userGroupAdditionalItemFields,
},
AdditionalItemContextMenuItems: ({ item, onChange, onMenuClose }) => {
return <UserGroupContextMenuItem item={item} onChange={onChange} onMenuClose={onMenuClose} />;
},
AdditionalItemContent: ({ item }) => {
return <UserGroupChip item={item} />;
},
});
23 changes: 0 additions & 23 deletions demo/admin/src/common/blocks/LinkListBlockWithAdditionalFields.tsx

This file was deleted.

0 comments on commit a31ca11

Please sign in to comment.