mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removing unused isScrollHidden param
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
159e14f432
commit
77295a3bc8
@ -30,7 +30,6 @@ const colorConverter = new AnsiUp();
|
||||
export class PodLogList extends React.Component<Props> {
|
||||
@observable isJumpButtonVisible = false;
|
||||
@observable isLastLineVisible = true;
|
||||
@observable isScrollHidden = false;
|
||||
|
||||
private virtualListDiv = React.createRef<HTMLDivElement>(); // A reference for outer container in VirtualList
|
||||
private virtualListRef = React.createRef<VirtualList>(); // A reference for VirtualList component
|
||||
@ -173,7 +172,6 @@ export class PodLogList extends React.Component<Props> {
|
||||
|
||||
render() {
|
||||
const { logs, isLoading } = this.props;
|
||||
const { isScrollHidden } = this;
|
||||
const isInitLoading = isLoading && !logs.length;
|
||||
const rowHeights = new Array(logs.length).fill(this.lineHeight);
|
||||
if (isInitLoading) {
|
||||
@ -187,7 +185,7 @@ export class PodLogList extends React.Component<Props> {
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className={cssNames("PodLogList flex", { isLoading, isScrollHidden })}>
|
||||
<div className={cssNames("PodLogList flex", { isLoading })}>
|
||||
<VirtualList
|
||||
items={logs}
|
||||
rowHeights={rowHeights}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user