Skip to content

Commit cca5e7f

Browse files
committed
[FEATURE]: Add log entry to table compatible rows
Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>
1 parent dda2b60 commit cca5e7f

4 files changed

Lines changed: 471 additions & 418 deletions

File tree

logstable/src/components/LogsList.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
import React from 'react';
1515
import { LogEntry } from '@perses-dev/core';
1616
import { LogsTableOptions } from '../model';
17-
import { EmptyLogsState } from './EmptyLogsState';
18-
import { useExpandedRows } from './hooks/useExpandedRows';
17+
// import { useExpandedRows } from './hooks/useExpandedRows';
1918
import { VirtualizedLogsList } from './VirtualizedLogsList';
2019

2120
interface LogsListProps {
@@ -24,11 +23,6 @@ interface LogsListProps {
2423
}
2524

2625
export const LogsList: React.FC<LogsListProps> = ({ logs, spec }) => {
27-
const { expandedRows, toggleExpand } = useExpandedRows();
28-
29-
if (!logs.length) {
30-
return <EmptyLogsState />;
31-
}
32-
33-
return <VirtualizedLogsList logs={logs} spec={spec} expandedRows={expandedRows} onToggleExpand={toggleExpand} />;
26+
// const { expandedRows, toggleExpand } = useExpandedRows();
27+
return <VirtualizedLogsList logs={logs} spec={spec} />;
3428
};

0 commit comments

Comments
 (0)