added storybook stories for diff

This commit is contained in:
Sebastian Sdorra
2019-12-19 09:51:44 +01:00
parent b34cc07e40
commit 8410aa68c6
7 changed files with 205 additions and 14 deletions

View File

@@ -2,7 +2,6 @@ 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 MarkdownWithoutLang from "./__resources__/markdown-without-lang.md";
@@ -12,7 +11,6 @@ const Spacing = styled.div`
`;
storiesOf("MarkdownView", module)
.addDecorator(story => <MemoryRouter initialEntries={["/"]}>{story()}</MemoryRouter>)
.add("Default", () => (
<Spacing>
<MarkdownView content={TestPage} skipHtml={false} />