added some stories to the storybook

This commit is contained in:
Sebastian Sdorra
2019-10-17 12:07:20 +02:00
parent 4be93da5c2
commit cbc896d47e
19 changed files with 638 additions and 65 deletions

View File

@@ -1,6 +1,11 @@
// @flow
import React from "react";
import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
// TODO fix code splitting in production
// Storybook does not like the LightAsync import:
// import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
// so we should use the default import for development and the LightAsync for production
import ReactSyntaxHighlighter from "react-syntax-highlighter";
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
type Props = {