Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
henit committed Sep 12, 2023
1 parent e700b55 commit 3a6cb54
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const PrimitiveElements = () => {
value={['One', 'Two', 'Three', 'Four', 'Five']}
onChange={(value) => console.log('onChange', value)}
>
<Layout.Row>
<Layout.Row align="center">
<Field.String elementPath="/" />
<Iterate.ArrayRemoveElementButton
icon={TrashIcon}
Expand All @@ -38,7 +38,7 @@ export const ObjectElements = () => {
onChange={(value) => console.log('onChange', value)}
>
<Iterate.Array path="/">
<Layout.Row>
<Layout.Row align="center">
<Field.String elementPath="/name" />
<Iterate.ArrayRemoveElementButton text="Remove avenger" />
</Layout.Row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ showTabs: true

## Properties

| Property | Type | Description |
| ------------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
| `data-testid` | `string` | _(required)_ Test ID. |
| Property | Type | Description |
| ---------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ showTabs: true

## Properties

| Property | Type | Description |
| ------------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
| `data-testid` | `string` | _(required)_ Test ID. |
| Property | Type | Description |
| ---------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ showTabs: true

## Properties

| Property | Type | Description |
| ------------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
| `data-testid` | `string` | _(required)_ Test ID. |
| Property | Type | Description |
| ---------- | ------------ | ------------------------- |
| `children` | `React.Node` | _(required)_ Button text. |
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

| Property | Type | Description |
| ---------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `data-testid` | `string` | _(optional)_ Test ID |
| `className` | `string` | _(optional)_ Outer DOM element class name |
| `value` | {props.type} | _(optional)_ Source data value for the input |
| `layout` | `string` | _(optional)_ Layout for the label and input. Can be `horizontal` or `vertical` |
Expand Down
2 changes: 0 additions & 2 deletions packages/dnb-eufemia/src/extensions/forms/Iterate/Array.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export type Props = FieldHelpProps &

function ArrayComponent(props: Props) {
const {
id,
className,
layout = 'vertical',
placeholder,
Expand Down Expand Up @@ -78,7 +77,6 @@ function ArrayComponent(props: Props) {
return (
<FieldBlock
className={classnames('dnb-forms-field-number', className)}
forId={id}
layout={layout}
label={label}
labelDescription={labelDescription}
Expand Down

0 comments on commit 3a6cb54

Please sign in to comment.