-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mynamesleon
committed
Aug 23, 2024
1 parent
87f0ce7
commit d60da27
Showing
1 changed file
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ import EasyForm from '../EasyForm'; | |
import EasyField from '../EasyField'; | ||
import type { FieldRepeaterProps } from './FieldRepeater.types'; | ||
import type { EasyFormProps } from '../EasyForm/EasyForm.types'; | ||
import { FIELD_REPEATER_STRINGS_KEYS } from './FieldRepeaterContext.types'; | ||
import CONTROL_TYPE from '../../controlTypes'; | ||
|
||
// temp work-around for doc-gen index type issue; | ||
|
@@ -47,7 +46,7 @@ StandardUsage.args = { | |
name: 'John Doe', | ||
email: '[email protected]', | ||
}, | ||
name: 'field-repeater', | ||
name: 'repeater', | ||
max: 10, | ||
min: 1, | ||
}; | ||
|
@@ -79,12 +78,6 @@ StandardUsage.args = { | |
export default { | ||
title: 'Components/FieldRepeater', | ||
component: StandardUsage, | ||
argTypes: { | ||
...FIELD_REPEATER_STRINGS_KEYS.reduce((acc, str) => { | ||
acc[str] = { control: 'text' }; | ||
return acc; | ||
}, {}), | ||
}, | ||
}; | ||
|
||
export const EasyFormStructureExample = (props: EasyFormProps) => ( | ||
|
@@ -121,7 +114,7 @@ EasyFormStructureExample.args = { | |
label: 'Email', | ||
}, | ||
], | ||
name: 'field-repeater', | ||
name: 'repeater', | ||
min: 1, | ||
max: 10, | ||
}, | ||
|