Skip to content

Commit

Permalink
refine stories name (grommet#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimiSun authored and ericsoderberghp committed Jul 24, 2019
1 parent fb3ae13 commit 83c1495
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/js/components/Carousel/carousel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SimpleCarousel = ({ initialChild }) => (
</Grommet>
);

storiesOf('Carousel', module).add('Simple Carousel', () => <SimpleCarousel />);
storiesOf('Carousel', module).add('Carousel With `initialChild`', () => (
storiesOf('Carousel', module).add('Simple', () => <SimpleCarousel />);
storiesOf('Carousel', module).add('Initial child`', () => (
<SimpleCarousel initialChild={1} />
));
2 changes: 1 addition & 1 deletion src/js/components/Heading/heading.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ const CustomHeading = () => (
storiesOf('Heading', module)
.add('All', () => <All />)
.add('Color', () => <Color />)
.add('Custom Heading', () => <CustomHeading />);
.add('Custom', () => <CustomHeading />);
2 changes: 1 addition & 1 deletion src/js/components/Layer/layer.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ const ScrollBodyLayer = () => (

storiesOf('Layer', module)
.add('Center', () => <CenterLayer />)
.add('CornerLayer', () => <CornerLayer />)
.add('Corner', () => <CornerLayer />)
.add('Form', () => <FormLayer />)
.add('Notification', () => <NotificationLayer />)
.add('Margin', () => <MarginLayer full />)
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Markdown/markdown.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ const ComponentOverrideMarkdown = () => (
);

storiesOf('Markdown', module)
.add('Simple Markdown', () => <SimpleMarkdown />)
.add('Simple', () => <SimpleMarkdown />)
.add('Component Override Markdown', () => <ComponentOverrideMarkdown />);
6 changes: 2 additions & 4 deletions src/js/components/RadioButton/radiobutton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ class CheckBoxInsideButton extends Component {
}
}
storiesOf('RadioButton', module)
.add('Simple RadioButton', () => <SimpleRadioButton />)
.add('Disabled RadioButton', () => (
<SimpleRadioButton disabled selected="c2" />
))
.add('Simple', () => <SimpleRadioButton />)
.add('Disabled', () => <SimpleRadioButton disabled selected="c2" />)
.add('Custom Theme', () => <CustomRadioButton />)
.add('Inside a Button Theme', () => <CheckBoxInsideButton />);
4 changes: 2 additions & 2 deletions src/js/components/Stack/stack.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ const FillStack = () => (
);

storiesOf('Stack', module)
.add('Simple Stack', () => <SimpleStack />)
.add('Fill Stack', () => <FillStack />);
.add('Simple', () => <SimpleStack />)
.add('Fill', () => <FillStack />);
2 changes: 1 addition & 1 deletion src/js/components/TextInput/stories/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ class TagTextInput extends Component {
}
}

storiesOf('TextInput', module).add('Tag TextInput', () => <TagTextInput />);
storiesOf('TextInput', module).add('Tag', () => <TagTextInput />);
4 changes: 2 additions & 2 deletions src/js/components/TextInput/stories/textinput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class ThemedTextInput extends Component {
}

storiesOf('TextInput', module)
.add('Simple TextInput', () => <SimpleTextInput />)
.add('Password input', () => <PasswordInput />)
.add('Simple', () => <SimpleTextInput />)
.add('Password', () => <PasswordInput />)
.add('Suggestions', () => <SuggestionsTextInput />)
.add('Themed', () => <ThemedTextInput />);
2 changes: 1 addition & 1 deletion src/js/components/WorldMap/worldmap.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class SimpleWorldMap extends Component {
}
}

storiesOf('WorldMap', module).add('Simple WorldMap', () => <SimpleWorldMap />);
storiesOf('WorldMap', module).add('Simple', () => <SimpleWorldMap />);

0 comments on commit 83c1495

Please sign in to comment.