[CI] Fix frontend build issue (#20375)

This commit is contained in:
Simon Mo 2021-11-15 10:12:43 -08:00 committed by GitHub
parent 91920f1d02
commit 72ae22e82b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,6 @@
import dayjs from "dayjs";
import low from "lowlight";
import React, {
CSSProperties,
MutableRefObject,
useEffect,
useRef,
useState,
} from "react";
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
import { FixedSizeList as List } from "react-window";
import "./darcula.css";
import "./github.css";
@ -112,18 +106,12 @@ const LogVirtualView: React.FC<LogVirtualViewProps> = ({
if (listRef) {
listRef.current = outter.current;
}
const itemRenderer = ({
index,
style: s,
}: {
index: number;
style: CSSProperties;
}) => {
const itemRenderer = ({ index, style }: { index: number; style: any }) => {
const { i, origin } = logs[revert ? logs.length - 1 - index : index];
return (
<div
key={`${index}list`}
style={{ ...s, overflowX: "visible", whiteSpace: "pre" }}
style={{ ...style, overflowX: "visible", whiteSpace: "pre" }}
>
<span
style={{