mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
reduce ts-ignore count
This commit is contained in:
@@ -27,8 +27,6 @@ import { Person, Repository } from "@scm-manager/ui-types";
|
|||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { LightAsync as ReactSyntaxHighlighter, createElement } from "react-syntax-highlighter";
|
import { LightAsync as ReactSyntaxHighlighter, createElement } from "react-syntax-highlighter";
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
|
import { arduinoLight } from "react-syntax-highlighter/dist/cjs/styles/hljs";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import DateShort from "./DateShort";
|
import DateShort from "./DateShort";
|
||||||
@@ -116,7 +114,7 @@ const Popover = styled.div`
|
|||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
/*left: 50%;*/
|
left: 5.5em;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
border-bottom-color: white;
|
border-bottom-color: white;
|
||||||
border-left-color: white;
|
border-left-color: white;
|
||||||
@@ -163,11 +161,9 @@ const shortRevision = (revision: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const Annotate: FC<Props> = ({ source, repository }) => {
|
const Annotate: FC<Props> = ({ source, repository }) => {
|
||||||
// @ts-ignore
|
const defaultRenderer = ({ rows, stylesheet, useInlineStyles }: any) => {
|
||||||
const defaultRenderer = ({ rows, stylesheet, useInlineStyles }) => {
|
|
||||||
let lastRevision = "";
|
let lastRevision = "";
|
||||||
// @ts-ignore
|
return rows.map((node: any, i: number) => {
|
||||||
return rows.map((node, i) => {
|
|
||||||
const line = createElement({
|
const line = createElement({
|
||||||
node,
|
node,
|
||||||
stylesheet,
|
stylesheet,
|
||||||
|
|||||||
Reference in New Issue
Block a user