Add CardColumn.stories.tsx

This commit is contained in:
Florian Scholdei
2020-04-06 14:43:41 +02:00
parent 215e16974c
commit 00bb9ae2b2
2 changed files with 59 additions and 3 deletions

View File

@@ -37,12 +37,12 @@ const Container: FC = ({ children }) => <Wrapper>{children}</Wrapper>;
const link = "/foo/bar";
const icon = <Icon name="icons fa-2x" className="media-left" />;
const contentLeft = <strong className="is-marginless">Main content</strong>;
const contentRight = <small>More text</small>;
const contentLeft = <strong className="is-marginless">main content</strong>;
const contentRight = <small>more text</small>;
storiesOf("CardColumnSmall", module)
.addDecorator(story => <MemoryRouter initialEntries={["/"]}>{story()}</MemoryRouter>)
.addDecorator(storyFn => <Container>{storyFn()}</Container>)
.add("Default", () => (
.add("default", () => (
<CardColumnSmall link={link} icon={icon} contentLeft={contentLeft} contentRight={contentRight} />
));