Skip to content

Commit

Permalink
small repeater story update
Browse files Browse the repository at this point in the history
  • Loading branch information
mynamesleon committed Aug 23, 2024
1 parent 87f0ce7 commit d60da27
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/FieldRepeater/FieldRepeater.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -47,7 +46,7 @@ StandardUsage.args = {
name: 'John Doe',
email: '[email protected]',
},
name: 'field-repeater',
name: 'repeater',
max: 10,
min: 1,
};
Expand Down Expand Up @@ -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) => (
Expand Down Expand Up @@ -121,7 +114,7 @@ EasyFormStructureExample.args = {
label: 'Email',
},
],
name: 'field-repeater',
name: 'repeater',
min: 1,
max: 10,
},
Expand Down

0 comments on commit d60da27

Please sign in to comment.