mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-23 16:59:48 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import React from "react";
|
||||
|
||||
import { LightAsync as ReactSyntaxHighlighter } from 'react-syntax-highlighter';
|
||||
import { arduinoLight } from 'react-syntax-highlighter/dist/cjs/styles/hljs';
|
||||
import { LightAsync as ReactSyntaxHighlighter } from "react-syntax-highlighter";
|
||||
// @ts-ignore
|
||||
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
|
||||
|
||||
type Props = {
|
||||
language: string;
|
||||
@@ -12,7 +13,7 @@ class SyntaxHighlighter extends React.Component<Props> {
|
||||
render() {
|
||||
return (
|
||||
<ReactSyntaxHighlighter
|
||||
showLineNumbers="false"
|
||||
showLineNumbers={false}
|
||||
language={this.props.language}
|
||||
style={arduinoLight}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user