migrate ui-components from flow to typescript

This commit is contained in:
Sebastian Sdorra
2019-10-20 16:59:02 +02:00
parent c41efbdc4f
commit f49e17a3a7
151 changed files with 2039 additions and 25265 deletions

View File

@@ -1,20 +1,20 @@
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 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';
import TestPage from "./__resources__/test-page.md";
const Spacing = styled.div`
padding: 2em;
`;
storiesOf('MarkdownView', module)
storiesOf("MarkdownView", module)
.addDecorator(story => (
<MemoryRouter initialEntries={['/']}>{story()}</MemoryRouter>
<MemoryRouter initialEntries={["/"]}>{story()}</MemoryRouter>
))
.add('Default', () => (
.add("Default", () => (
<Spacing>
<MarkdownView content={TestPage} skipHtml={false} />
</Spacing>