mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import styled from 'styled-components';
|
||||
import SyntaxHighlighter from './SyntaxHighlighter';
|
||||
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';
|
||||
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', () => (
|
||||
storiesOf("SyntaxHighlighter", module)
|
||||
.add("Java", () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="java" value={JavaHttpServer} />
|
||||
</Spacing>
|
||||
))
|
||||
.add('Go', () => (
|
||||
.add("Go", () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="go" value={GoHttpServer} />
|
||||
</Spacing>
|
||||
))
|
||||
/*.add('Javascript', () => (
|
||||
.add('Javascript', () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="javascript" value={JsHttpServer} />
|
||||
</Spacing>
|
||||
))*/
|
||||
.add('Python', () => (
|
||||
))
|
||||
.add("Python", () => (
|
||||
<Spacing>
|
||||
<SyntaxHighlighter language="python" value={PyHttpServer} />
|
||||
</Spacing>
|
||||
|
||||
Reference in New Issue
Block a user