From f15a9c896b0b6d8029a6687de1986843483db9c9 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Thu, 18 Jan 2024 19:57:30 +0200 Subject: [PATCH] fix types --- src/pages/LogsPage/LogsTerminal.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/pages/LogsPage/LogsTerminal.tsx b/src/pages/LogsPage/LogsTerminal.tsx index d02e617f..96753db4 100644 --- a/src/pages/LogsPage/LogsTerminal.tsx +++ b/src/pages/LogsPage/LogsTerminal.tsx @@ -33,13 +33,7 @@ const fetchMoreData = (): Promise => { }) } - -const LogsTerminal = ({ - windowWidth, - timestamps, - searchInput, - -}: LogsTerminalProps) => { +const LogsTerminal = ({ windowWidth, timestamps, searchInput }: LogsTerminalProps) => { const [data, setData] = useState([]) const [loadedIndexes, setLoadedIndexes] = useState<{ [key: number]: boolean }>({}) const listRef = useRef(null) @@ -133,6 +127,8 @@ const LogsTerminal = ({ {({ index, style }) => { const highlight = searchInput && data[index].description.split(' ').includes(searchInput) + ? true + : false // now we only check for the existing text at the moment // I have to move this statemant in the terminalRow component return (