diff --git a/src/pages/LogsPage/LogsTerminal.tsx b/src/pages/LogsPage/LogsTerminal.tsx index aeac2789..d02e617f 100644 --- a/src/pages/LogsPage/LogsTerminal.tsx +++ b/src/pages/LogsPage/LogsTerminal.tsx @@ -21,10 +21,10 @@ type LogsTerminalProps = { highLightSearched: boolean } -const fetchMoreData = () => { +const fetchMoreData = (): Promise => { return new Promise(resolve => { setTimeout(() => { - const newData = [] + const newData: DataType[] = [] for (let i = 0; i < 10; i++) { newData.push({ option: `Option ${i}`, description: `Description ${i}` }) } @@ -33,6 +33,7 @@ const fetchMoreData = () => { }) } + const LogsTerminal = ({ windowWidth, timestamps,