mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Add CardColumn.stories.tsx
This commit is contained in:
@@ -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} />
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user