mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
use reflow to migrate from flow to typescript
This commit is contained in:
21
scm-ui/ui-components/src/MarkdownView.stories.tsx
Normal file
21
scm-ui/ui-components/src/MarkdownView.stories.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import MarkdownView from './MarkdownView';
|
||||
import styled from 'styled-components';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
|
||||
import TestPage from './__resources__/test-page.md';
|
||||
|
||||
const Spacing = styled.div`
|
||||
padding: 2em;
|
||||
`;
|
||||
|
||||
storiesOf('MarkdownView', module)
|
||||
.addDecorator(story => (
|
||||
<MemoryRouter initialEntries={['/']}>{story()}</MemoryRouter>
|
||||
))
|
||||
.add('Default', () => (
|
||||
<Spacing>
|
||||
<MarkdownView content={TestPage} skipHtml={false} />
|
||||
</Spacing>
|
||||
));
|
||||
Reference in New Issue
Block a user