Skip to content

Commit

Permalink
Fix Circle button typo on storybook (#469)
Browse files Browse the repository at this point in the history
* Fix Circle button typo on storybook

* Don't show calendar

* storybook config
  • Loading branch information
0xycvv authored Mar 19, 2019
1 parent 10810ee commit bd70e96
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .storybook/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import { withInfo } from '@storybook/addon-info';
// @ts-ignore
import { create } from '@storybook/theming';
import { addParameters, configure } from '@storybook/react';
import {
addParameters,
configure,
addDecorator,
} from '@storybook/react';
import * as React from 'react';
import { withThemes } from 'storybook-styled-components';
import { createGlobalStyle, css } from 'styled-components';
Expand Down Expand Up @@ -35,7 +39,7 @@ const GlobalStyle = createGlobalStyle`
${fontFamily};
`;

addParameters(withInfo);
addDecorator(withInfo);
addParameters({
options: {
theme: create({
Expand All @@ -57,13 +61,13 @@ addParameters({
},
});

addParameters(story => (
addDecorator(story => (
<>
<GlobalStyle />
{story()}
</>
));
addParameters(withThemes(vitalThemes));
addDecorator(withThemes(vitalThemes));
// automatically import all files ending in *.stories.js
// @ts-ignore
const req = require.context('../packages', true, /.stories.tsx$/);
Expand Down
6 changes: 3 additions & 3 deletions packages/button/src/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ButtonGroup,
FlatButton,
SubtleButton,
CicleButton,
CircleButton,
LightButton,
LinkButton,
} from '.';
Expand Down Expand Up @@ -108,9 +108,9 @@ storiesOf('Packages | Button', module)
<SubtleButton>{text('Label', 'Subtle Button')}</SubtleButton>
))
.add('Circular style', () => (
<CicleButton>
<CircleButton>
<Star name="star" color="#3b5998" />
</CicleButton>
</CircleButton>
))
.add('ButtonGroup', () => (
<ButtonGroup>
Expand Down

0 comments on commit bd70e96

Please sign in to comment.