From 94e728568fd78365fcfb4dc4aa5d4d5a7ade8a27 Mon Sep 17 00:00:00 2001 From: dlcaldeira Date: Fri, 24 Nov 2023 10:38:01 +0000 Subject: [PATCH] fix stuff --- .../src/components/Enumeration/Enumeration.types.tsx | 1 - .../design-system/src/stories/form/Enumeration/Enumeration.mdx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/design-system/src/components/Enumeration/Enumeration.types.tsx b/packages/design-system/src/components/Enumeration/Enumeration.types.tsx index 323887bf855..10e3e8338da 100644 --- a/packages/design-system/src/components/Enumeration/Enumeration.types.tsx +++ b/packages/design-system/src/components/Enumeration/Enumeration.types.tsx @@ -1,5 +1,4 @@ export interface EnumerationProps { - error?: string; id: string; items: string[]; loadMoreRows?: (params: { startIndex: number; stopIndex: number }) => Promise; diff --git a/packages/design-system/src/stories/form/Enumeration/Enumeration.mdx b/packages/design-system/src/stories/form/Enumeration/Enumeration.mdx index 680a8fd28c9..52cce77e2cd 100644 --- a/packages/design-system/src/stories/form/Enumeration/Enumeration.mdx +++ b/packages/design-system/src/stories/form/Enumeration/Enumeration.mdx @@ -29,7 +29,7 @@ The component is split into two parts, the _header_ and the _body_. The header has a `title` and the 3 different actions: 1. Create: `onCreate` - optional parameter. -2. Edit: Triggers edit mode on the body part of the component, which allows for items to be selected. When items are selected, a "Remove" button which triggers the `onRemove` callback when clicked +2. Edit: Triggers edit mode on the body part of the component, which allows for items to be selected. When items are selected, a "Remove" button appears, which triggers the `onRemove` callback when clicked. 3. Import: `onImport` - optional parameter. If not passed, the action will not appear. All actions (create, edit and remove) call the `onChange` callback.