mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
use reflow to migrate from flow to typescript
This commit is contained in:
35
scm-ui/ui-components/src/SyntaxHighlighter.stories.tsx
Normal file
35
scm-ui/ui-components/src/SyntaxHighlighter.stories.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import styled from 'styled-components';
|
||||
import SyntaxHighlighter from './SyntaxHighlighter';
|
||||
|
||||
import JavaHttpServer from './__resources__/HttpServer.java';
|
||||
import GoHttpServer from './__resources__/HttpServer.go';
|
||||
//import JsHttpServer from './__resources__/HttpServer.js';
|
||||
import PyHttpServer from './__resources__/HttpServer.py';
|
||||
|
||||
const Spacing = styled.div`
|
||||
padding: 1em;
|
||||
`;
|
||||
|
||||
storiesOf('SyntaxHighlighter', module)
|
||||
.add('Java', () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="java" value={JavaHttpServer} />
|
||||
</Spacing>
|
||||
))
|
||||
.add('Go', () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="go" value={GoHttpServer} />
|
||||
</Spacing>
|
||||
))
|
||||
/*.add('Javascript', () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="javascript" value={JsHttpServer} />
|
||||
</Spacing>
|
||||
))*/
|
||||
.add('Python', () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="python" value={PyHttpServer} />
|
||||
</Spacing>
|
||||
));
|
||||
Reference in New Issue
Block a user