Skip to content

Commit ee1ecba

Browse files
committed
Update stories
1 parent b066c8d commit ee1ecba

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/stories/TextInput.stories.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,36 @@ AutoFocus.args = {
2424
autoFocus: true,
2525
};
2626

27-
const Default = Template.bind({});
28-
Default.args = {
27+
const DefaultInput = Template.bind({});
28+
DefaultInput.args = {
2929
label: 'Default text input',
3030
name: 'Default',
3131
};
3232

33-
const DefaultValue = Template.bind({});
34-
DefaultValue.args = {
35-
label: 'Input with default value',
33+
const DefaultValueInput = Template.bind({});
34+
DefaultValueInput.args = {
35+
label: 'Default value input',
3636
name: 'DefaultValue',
3737
defaultValue: 'My default value',
3838
};
3939

40-
const ErrorStory = Template.bind({});
41-
ErrorStory.args = {
42-
label: 'Input with error',
40+
const ErrorInput = Template.bind({});
41+
ErrorInput.args = {
42+
label: 'Error input',
4343
name: 'InputWithError',
44-
errorText: 'This field has an error.',
44+
errorText: 'Oops! Looks like there\'s an error',
4545
};
4646

4747
const ForceActiveLabel = Template.bind({});
4848
ForceActiveLabel.args = {
49-
label: 'Forced active label',
49+
label: 'Force active label',
5050
placeholder: 'My placeholder text',
5151
forceActiveLabel: true,
5252
};
5353

54-
const Placeholder = Template.bind({});
55-
Placeholder.args = {
56-
label: 'Input with placeholder',
54+
const PlaceholderInput = Template.bind({});
55+
PlaceholderInput.args = {
56+
label: 'Placeholder input',
5757
name: 'Placeholder',
5858
placeholder: 'My placeholder text',
5959
};
@@ -80,7 +80,7 @@ PrefixedInput.args = {
8080
const MaxLengthInput = Template.bind({});
8181
MaxLengthInput.args = {
8282
label: 'MaxLength input',
83-
name: 'MaxLengthInput',
83+
name: 'MaxLength',
8484
placeholder: 'My placeholder text',
8585
maxLength: 50,
8686
};
@@ -93,7 +93,7 @@ const HintAndErrorInput = (args) => {
9393
{...args}
9494
onChangeText={(value) => {
9595
if (value && value.toLowerCase() === 'oops!') {
96-
setError('Oops! Looks like there\'s an error.');
96+
setError('Oops! Looks like there\'s an error');
9797
return;
9898
}
9999
setError('');
@@ -104,19 +104,19 @@ const HintAndErrorInput = (args) => {
104104
};
105105
HintAndErrorInput.args = {
106106
label: 'HintAndError input',
107-
name: 'HintAndErrorInput',
107+
name: 'HintAndError',
108108
placeholder: 'My placeholder text',
109-
hint: 'Type "Oops!" to see the error.',
109+
hint: 'Type "Oops!" to see the error',
110110
};
111111

112112
export default story;
113113
export {
114114
AutoFocus,
115-
Default,
116-
DefaultValue,
117-
ErrorStory,
115+
DefaultInput,
116+
DefaultValueInput,
117+
ErrorInput,
118118
ForceActiveLabel,
119-
Placeholder,
119+
PlaceholderInput,
120120
AutoGrowInput,
121121
PrefixedInput,
122122
MaxLengthInput,

0 commit comments

Comments
 (0)